summaryrefslogtreecommitdiffstats
path: root/game/shared/chunk.hh
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-03-16 20:18:16 +0500
committeruntodesu <kirill@untode.su>2025-03-16 20:18:16 +0500
commita8fa9fe920d4ed48ed1b88a6e585cdbff648039e (patch)
tree63520fe106ff2e445fa93d2992d14d4f7e60b8e5 /game/shared/chunk.hh
parent933ed978a21d5ffefc376d66f0dc9f5354292ca7 (diff)
downloadvoxelius-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/chunk.hh')
-rw-r--r--game/shared/chunk.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/game/shared/chunk.hh b/game/shared/chunk.hh
index 506d867..560d3a7 100644
--- a/game/shared/chunk.hh
+++ b/game/shared/chunk.hh
@@ -5,6 +5,8 @@
#include "shared/types.hh"
#include "shared/voxel_storage.hh"
+constexpr static unsigned int BIOME_VOID = 0U;
+
class Dimension;
class Chunk final {
@@ -21,6 +23,9 @@ public:
const VoxelStorage &get_voxels(void) const;
void set_voxels(const VoxelStorage &voxels);
+ unsigned int get_biome(void) const;
+ void set_biome(unsigned int biome);
+
entt::entity get_entity(void) const;
Dimension *get_dimension(void) const;
@@ -28,6 +33,7 @@ private:
entt::entity m_entity;
Dimension *m_dimension;
VoxelStorage m_voxels;
+ unsigned int m_biome;
};
#endif /* SHARED_CHUNK_HH */