diff options
Diffstat (limited to 'src/World/BiomeType.hpp')
| -rw-r--r-- | src/World/BiomeType.hpp | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/World/BiomeType.hpp b/src/World/BiomeType.hpp index 026b3ef..2e3d8c6 100644 --- a/src/World/BiomeType.hpp +++ b/src/World/BiomeType.hpp @@ -8,34 +8,32 @@ namespace MC::World { class BiomeType { public: enum Value : uint8_t { - Forest, Plains, + Forest, + Alpine, Desert, + Jungle, + Beach, + River, Ocean, }; - static constexpr const size_t Size = 4; + static constexpr uint8_t Size = Ocean + 1; - BiomeType() = default; - BiomeType(Value biome) : m_biome(biome) {} + BiomeType() : m_biome(Plains) {} + BiomeType(const Value biome) : m_biome(biome) {} operator Value() const { return m_biome; } static std::vector<BiomeType> all() { - return { - Plains, Forest, Desert, Ocean - }; + return { Plains, Forest, Alpine, Desert, Jungle, Beach, River, Ocean }; } static std::vector<BiomeType> all_ground() { - return { - Plains, Forest, Desert - }; + return { Plains, Forest, Alpine, Desert, Jungle, Beach }; } private: - - Value m_biome; }; |
