diff options
| author | untodesu <kirill@untode.su> | 2025-03-22 13:11:48 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-03-22 13:11:48 +0500 |
| commit | d8f0fcb101c21b3c4d746d20da6e56e7591006e4 (patch) | |
| tree | ffa2e01f7a4304af01dd639dcff203aec6546399 /game/server/overworld.hh | |
| parent | d052f35d13058fd5c9964660d4577968979ab600 (diff) | |
| download | voxelius-d8f0fcb101c21b3c4d746d20da6e56e7591006e4.tar.bz2 voxelius-d8f0fcb101c21b3c4d746d20da6e56e7591006e4.zip | |
Generate trees of different height
Diffstat (limited to 'game/server/overworld.hh')
| -rw-r--r-- | game/server/overworld.hh | 6 |
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; |
