From a8fa9fe920d4ed48ed1b88a6e585cdbff648039e Mon Sep 17 00:00:00 2001 From: untodesu Date: Sun, 16 Mar 2025 20:18:16 +0500 Subject: Improved terrain generation - features! [1/2] - @reglnk asked me to commit this early to experiment with this weird-ass heightmap bug that messes with tree placement --- game/shared/dimension.hh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'game/shared/dimension.hh') diff --git a/game/shared/dimension.hh b/game/shared/dimension.hh index eb6f896..8806115 100644 --- a/game/shared/dimension.hh +++ b/game/shared/dimension.hh @@ -2,12 +2,16 @@ #define SHARED_DIMENSION_HH 1 #pragma once +#include "shared/const.hh" #include "shared/types.hh" class Chunk; class Config; class VoxelStorage; +using dimension_entropy_map = std::array; +using dimension_height_map = std::array; + class Dimension { public: explicit Dimension(const char *name, float gravity); @@ -43,7 +47,7 @@ public: private: std::string m_name; - emhash8::HashMap m_hashmap; + emhash8::HashMap m_chunkmap; float m_gravity; }; -- cgit