summaryrefslogtreecommitdiffstats
path: root/game/shared/chunk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'game/shared/chunk.cc')
-rw-r--r--game/shared/chunk.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/game/shared/chunk.cc b/game/shared/chunk.cc
index c996973..17fdcc1 100644
--- a/game/shared/chunk.cc
+++ b/game/shared/chunk.cc
@@ -8,6 +8,7 @@ Chunk::Chunk(entt::entity entity, Dimension *dimension)
m_entity = entity;
m_dimension = dimension;
m_voxels.fill(NULL_VOXEL_ID);
+ m_biome = BIOME_VOID;
}
voxel_id Chunk::get_voxel(const local_pos &lpos) const
@@ -44,6 +45,16 @@ void Chunk::set_voxels(const VoxelStorage &voxels)
m_voxels = voxels;
}
+unsigned int Chunk::get_biome(void) const
+{
+ return m_biome;
+}
+
+void Chunk::set_biome(unsigned int biome)
+{
+ m_biome = biome;
+}
+
entt::entity Chunk::get_entity(void) const
{
return m_entity;