1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #pragma once
- #include <Textur.h>
- #include "Block.h"
- #include "BlockType.h"
- #include "Item.h"
- class BlockType;
- class ItemType;
- class DirtBlockType;
- class DirtBlockItemType;
- class BasicBlock : public Block
- {
- public:
- BasicBlock( const BlockType* zType, const char* texture, ItemType* zTool, Framework::Vec3<int> pos, Framework::Textur* t );
- friend DirtBlockType;
- };
- class DirtBlockType : public BlockType
- {
- REGISTRABLE( DirtBlockType )
- protected:
- DirtBlockType();
- virtual void loadSuperBlock( Block* zBlock, Framework::StreamReader* zReader ) override;
- public:
- virtual Block* createBlock( Framework::Vec3<int> position ) override;
- virtual void initializeSuperBlock( Block* zBlock ) override;
- virtual bool needsInstance() const override;
- };
- REGISTER( DirtBlockType, BlockType )
- class DirtBlockItemType : public BasicBlockItemType
- {
- REGISTRABLE( DirtBlockItemType )
- protected:
- DirtBlockItemType();
- public:
- virtual Item* createItem() const override;
- };
- REGISTER( DirtBlockItemType, ItemType )
|