summaryrefslogtreecommitdiffstats
path: root/game/shared/feature.hh
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-03-22 15:08:17 +0500
committeruntodesu <kirill@untode.su>2025-03-22 15:08:17 +0500
commite34a973f647bc6b7814ad1f3e837689f8478b84a (patch)
tree7c8cb1702c16eb68e7acf942d46633a3833bba00 /game/shared/feature.hh
parentd8f0fcb101c21b3c4d746d20da6e56e7591006e4 (diff)
downloadvoxelius-e34a973f647bc6b7814ad1f3e837689f8478b84a.tar.bz2
voxelius-e34a973f647bc6b7814ad1f3e837689f8478b84a.zip
A bunch of pre-release fixes
- Updated localization for protocol messages - Added item registry check into server-side - Slightly improved how features are stored
Diffstat (limited to 'game/shared/feature.hh')
-rw-r--r--game/shared/feature.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/game/shared/feature.hh b/game/shared/feature.hh
index f5fe73b..b5cb262 100644
--- a/game/shared/feature.hh
+++ b/game/shared/feature.hh
@@ -7,14 +7,14 @@
class Dimension;
class VoxelStorage;
-class Feature final : public std::vector<std::pair<voxel_pos, voxel_id>> {
+class Feature final : public std::vector<std::tuple<voxel_pos, voxel_id, bool>> {
public:
explicit Feature(void) = default;
virtual ~Feature(void) = default;
public:
- void place(const voxel_pos &vpos, Dimension *dimension, bool overwrite = false) const;
- void place(const voxel_pos &vpos, const chunk_pos &cpos, VoxelStorage &voxels, bool overwrite = false) const;
+ void place(const voxel_pos &vpos, Dimension *dimension) const;
+ void place(const voxel_pos &vpos, const chunk_pos &cpos, VoxelStorage &voxels) const;
};
#endif /* SHARED_FEATURE_HH */