123456789101112131415161718192021222324252627282930313233 |
- #include "BasicBlocks.h"
- BasicBlock::BasicBlock( ItemType *zTool, Framework::Vec3<int> pos, Framework::Textur *t )
- : Block( zTool, pos )
- {}
- DirtBlockType::DirtBlockType()
- : BlockType( ID )
- {}
- void DirtBlockType::loadSuperBlock( Block *zBlock, Framework::StreamReader *zReader )
- {
- BlockType::loadSuperBlock( zBlock, zReader );
- }
- Block *DirtBlockType::createBlock( Framework::Vec3<int> position )
- {
- // TODO: load texture
- return new BasicBlock( 0, position, 0 ); // TODO: add efective tool
- }
- DirtBlockItemType::DirtBlockItemType()
- : BasicBlockItemType( ID )
- {}
- Item *DirtBlockItemType::createItem() const
- {
- BasicBlockItem *item = new BasicBlockItem( (ItemType *)this, "Dirt" );
- return item;
- }
|