summaryrefslogtreecommitdiffstats
path: root/game/shared/chunk.hh
diff options
context:
space:
mode:
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 */