X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld.hpp;h=6fabe9a0725e69b63a93797bb673788ca60abb6b;hb=d6435142245c019523b9385048d6d79bdd2565f2;hp=83fd3e80738cdcfe2778e5d30b523f4639c131d4;hpb=41e0223ec090142bf03066f4f5fc1f5005095072;p=blank.git diff --git a/src/world.hpp b/src/world.hpp index 83fd3e8..6fabe9a 100644 --- a/src/world.hpp +++ b/src/world.hpp @@ -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 chunks;