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/BiomeType.hpp | |
| parent | 92ac46df6afa8ee76f972cceb681cf32658f84a2 (diff) | |
| download | meowcraft-52732d71e72b02ff45e25f44e414f87ec9ab7666.tar.zst meowcraft-52732d71e72b02ff45e25f44e414f87ec9ab7666.zip | |
Pretty terrain generation
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; }; |
