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/chunk.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'game/shared/chunk.hh') 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 */ -- cgit