123456789101112131415161718192021222324252627 |
- #pragma once
- #include <Reader.h>
- #include <ReferenceCounter.h>
- #include <Vec3.h>
- #include "StaticRegistry.h"
- #include "ModelInfo.h"
- class Block;
- class BlockType : public virtual Framework::ReferenceCounter
- {
- private:
- const int id;
- bool needsInstance;
- int initialMaxHP;
- ModelInfo model;
- public:
- BlockType(int id, bool needsInstance, ModelInfo model, int initialMaxHP);
- ~BlockType();
- Block* createBlock(Framework::Vec3<int> position);
- bool doesNeedInstance() const;
- int getId() const;
- };
|