#include "BasicBlocks.h" BasicBlock::BasicBlock( ItemType *zTool, Framework::Vec3 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 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; }