From 52732d71e72b02ff45e25f44e414f87ec9ab7666 Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 29 Jun 2023 22:15:32 +0200 Subject: Pretty terrain generation --- src/World/BlockType.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/World/BlockType.hpp') 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, }; } -- cgit 1.4.1