summaryrefslogtreecommitdiffstats
path: root/game/shared/world/feature.hh
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-09-11 18:18:08 +0500
committeruntodesu <kirill@untode.su>2025-09-11 18:18:08 +0500
commit68694a9c9d7d27d3b79c7b96bb67f56db2f75c45 (patch)
treefa306d55b8333ffdb184befd41386830af2c3945 /game/shared/world/feature.hh
parent12947aafcc6a6eb362cc454e2149796ec9265743 (diff)
downloadvoxelius-68694a9c9d7d27d3b79c7b96bb67f56db2f75c45.tar.bz2
voxelius-68694a9c9d7d27d3b79c7b96bb67f56db2f75c45.zip
Metadata voxels!
Diffstat (limited to 'game/shared/world/feature.hh')
-rw-r--r--game/shared/world/feature.hh7
1 files changed, 4 insertions, 3 deletions
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<std::tuple<voxel_pos, voxel_id, bool>> {
+class Feature final : public std::vector<std::tuple<voxel_pos, const Voxel*, bool>> {
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