diff options
| author | untodesu <kirill@untode.su> | 2025-03-16 20:18:16 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-03-16 20:18:16 +0500 |
| commit | a8fa9fe920d4ed48ed1b88a6e585cdbff648039e (patch) | |
| tree | 63520fe106ff2e445fa93d2992d14d4f7e60b8e5 /game/shared/dimension.hh | |
| parent | 933ed978a21d5ffefc376d66f0dc9f5354292ca7 (diff) | |
| download | voxelius-a8fa9fe920d4ed48ed1b88a6e585cdbff648039e.tar.bz2 voxelius-a8fa9fe920d4ed48ed1b88a6e585cdbff648039e.zip | |
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
Diffstat (limited to 'game/shared/dimension.hh')
| -rw-r--r-- | game/shared/dimension.hh | 6 |
1 files changed, 5 insertions, 1 deletions
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<std::uint64_t, CHUNK_AREA>; +using dimension_height_map = std::array<voxel_pos::value_type, CHUNK_AREA>; + class Dimension { public: explicit Dimension(const char *name, float gravity); @@ -43,7 +47,7 @@ public: private: std::string m_name; - emhash8::HashMap<chunk_pos, Chunk *> m_hashmap; + emhash8::HashMap<chunk_pos, Chunk *> m_chunkmap; float m_gravity; }; |
