summaryrefslogtreecommitdiffstats
path: root/game/server/overworld.hh
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-03-22 13:11:48 +0500
committeruntodesu <kirill@untode.su>2025-03-22 13:11:48 +0500
commitd8f0fcb101c21b3c4d746d20da6e56e7591006e4 (patch)
treeffa2e01f7a4304af01dd639dcff203aec6546399 /game/server/overworld.hh
parentd052f35d13058fd5c9964660d4577968979ab600 (diff)
downloadvoxelius-d8f0fcb101c21b3c4d746d20da6e56e7591006e4.tar.bz2
voxelius-d8f0fcb101c21b3c4d746d20da6e56e7591006e4.zip
Generate trees of different height
Diffstat (limited to 'game/server/overworld.hh')
-rw-r--r--game/server/overworld.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/game/server/overworld.hh b/game/server/overworld.hh
index 2f7b67e..979e5a3 100644
--- a/game/server/overworld.hh
+++ b/game/server/overworld.hh
@@ -8,10 +8,12 @@
#include "shared/dimension.hh"
#include "shared/feature.hh"
+constexpr static unsigned int OW_NUM_TREES = 4U;
+
struct Overworld_Metadata final {
dimension_entropy_map entropy;
dimension_height_map heightmap;
- std::vector<local_pos_xz> trees;
+ std::vector<local_pos> trees;
};
class Overworld final : public Dimension {
@@ -52,7 +54,7 @@ private:
fnl_state m_fnl_nvdi;
private:
- Feature m_feat_tree;
+ Feature m_feat_tree[OW_NUM_TREES];
private:
std::mutex m_mutex;