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