summaryrefslogtreecommitdiffstats
path: root/game/shared/world/chunk.hh
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-09-12 16:16:06 +0500
committeruntodesu <kirill@untode.su>2025-09-12 16:16:06 +0500
commitfc80fa024fc93dac6ea89461ef36f455c5e468a2 (patch)
tree7c4ea8f03b6778572d59784dc28b600e3f8f2268 /game/shared/world/chunk.hh
parent12947aafcc6a6eb362cc454e2149796ec9265743 (diff)
parent522a7514012da86f7b9643179f0763746f3b232e (diff)
downloadvoxelius-fc80fa024fc93dac6ea89461ef36f455c5e468a2.tar.bz2
voxelius-fc80fa024fc93dac6ea89461ef36f455c5e468a2.zip
Merge pull request #15 from untodesu/metavoxels
Metavoxels
Diffstat (limited to 'game/shared/world/chunk.hh')
-rw-r--r--game/shared/world/chunk.hh9
1 files changed, 5 insertions, 4 deletions
diff --git a/game/shared/world/chunk.hh b/game/shared/world/chunk.hh
index c5bba12..4a1e557 100644
--- a/game/shared/world/chunk.hh
+++ b/game/shared/world/chunk.hh
@@ -9,6 +9,7 @@ constexpr static unsigned int BIOME_VOID = 0U;
namespace world
{
class Dimension;
+class Voxel;
} // namespace world
namespace world
@@ -18,11 +19,11 @@ public:
explicit Chunk(entt::entity entity, Dimension* dimension);
virtual ~Chunk(void) = default;
- voxel_id get_voxel(const local_pos& lpos) const;
- voxel_id get_voxel(const std::size_t index) const;
+ const Voxel* get_voxel(const local_pos& lpos) const;
+ const Voxel* get_voxel(const std::size_t index) const;
- void set_voxel(voxel_id voxel, const local_pos& lpos);
- void set_voxel(voxel_id voxel, const std::size_t index);
+ void set_voxel(const Voxel* voxel, const local_pos& lpos);
+ void set_voxel(const Voxel* voxel, const std::size_t index);
const VoxelStorage& get_voxels(void) const;
void set_voxels(const VoxelStorage& voxels);