From d8f0fcb101c21b3c4d746d20da6e56e7591006e4 Mon Sep 17 00:00:00 2001 From: untodesu Date: Sat, 22 Mar 2025 13:11:48 +0500 Subject: Generate trees of different height --- game/server/overworld.hh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'game/server/overworld.hh') 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 trees; + std::vector 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; -- cgit