]> git.localhorst.tv Git - blank.git/blobdiff - src/world.hpp
stair shape
[blank.git] / src / world.hpp
index 83fd3e80738cdcfe2778e5d30b523f4639c131d4..6fabe9a0725e69b63a93797bb673788ca60abb6b 100644 (file)
@@ -69,6 +69,8 @@ public:
 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]; }
 
@@ -184,6 +186,7 @@ private:
 private:
        BlockTypeRegistry blockType;
        CuboidShape blockShape;
+       StairShape stairShape;
        CuboidShape slabShape;
 
        std::list<Chunk> chunks;