feat: add river biome (#4)

* feat: add river biome

* fix: duplicate mountain terrain generation

* fix: safe_int_to_biome not include river
This commit is contained in:
zhenyan121
2026-05-01 19:18:46 +08:00
committed by GitHub
parent d4d761b2aa
commit a63dfa7f47
14 changed files with 127 additions and 23 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include "Cubed/constants.hpp"
#include "Cubed/gameplay/biome.hpp"
#include "Cubed/tools/cubed_random.hpp"
#include <atomic>
@@ -49,6 +50,9 @@ private:
static inline std::atomic<bool> is_seed_change{false};
Chunk& m_chunk;
Random m_random;
std::array<Biome, 4> neighbor_biome{Biome::NONE, Biome::NONE, Biome::NONE,
Biome::NONE};
bool is_neighbor_river = false;
};
} // namespace Cubed