From 68694a9c9d7d27d3b79c7b96bb67f56db2f75c45 Mon Sep 17 00:00:00 2001 From: untodesu Date: Thu, 11 Sep 2025 18:18:08 +0500 Subject: Metadata voxels! --- game/shared/world/feature.hh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'game/shared/world/feature.hh') diff --git a/game/shared/world/feature.hh b/game/shared/world/feature.hh index 20a809b..09b913e 100644 --- a/game/shared/world/feature.hh +++ b/game/shared/world/feature.hh @@ -4,19 +4,20 @@ namespace world { +class Chunk; class Dimension; -class VoxelStorage; +class Voxel; } // namespace world namespace world { -class Feature final : public std::vector> { +class Feature final : public std::vector> { public: Feature(void) = default; virtual ~Feature(void) = default; public: void place(const voxel_pos& vpos, Dimension* dimension) const; - void place(const voxel_pos& vpos, const chunk_pos& cpos, VoxelStorage& voxels) const; + void place(const voxel_pos& vpos, const chunk_pos& cpos, Chunk& chunk) const; }; } // namespace world -- cgit