: id(-1), visible(v), shape(shape), color(color), outline_color(outline_color) { }
static const BlockType DEFAULT;
- static const CuboidShape DEFAULT_SHAPE;
+ static const NullShape DEFAULT_SHAPE;
void FillVBO(
public:
int Add(const BlockType &);
+ size_t Size() const { return types.size(); }
+
BlockType *operator [](int id) { return &types[id]; }
const BlockType *Get(int id) const { return &types[id]; }
private:
BlockTypeRegistry blockType;
CuboidShape blockShape;
+ StairShape stairShape;
CuboidShape slabShape;
std::list<Chunk> chunks;