diff options
Diffstat (limited to 'src/World/BlockType.hpp')
| -rw-r--r-- | src/World/BlockType.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/World/BlockType.hpp b/src/World/BlockType.hpp index 65afe0d..dcb8e44 100644 --- a/src/World/BlockType.hpp +++ b/src/World/BlockType.hpp @@ -13,12 +13,13 @@ public: Grass, Stone, Sand, + Snow, Water, }; - static constexpr const size_t Size = 6; + static constexpr uint8_t Size = Water + 1; - BlockType() = default; + BlockType() : m_block(Air) {} BlockType(Value block) : m_block(block) {} operator Value() const { return m_block; } @@ -30,6 +31,7 @@ public: Grass, Stone, Sand, + Snow, Water, }; } |
