diff options
| author | Mel <einebeere@gmail.com> | 2023-06-29 22:15:32 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2023-06-29 22:15:32 +0200 |
| commit | 52732d71e72b02ff45e25f44e414f87ec9ab7666 (patch) | |
| tree | a3db775e01e04abaf0291e7d172740ff47ff1006 /src/World/BlockType.hpp | |
| parent | 92ac46df6afa8ee76f972cceb681cf32658f84a2 (diff) | |
| download | meowcraft-52732d71e72b02ff45e25f44e414f87ec9ab7666.tar.zst meowcraft-52732d71e72b02ff45e25f44e414f87ec9ab7666.zip | |
Pretty terrain generation
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, }; } |
