diff options
| author | untodesu <kirill@untode.su> | 2025-03-22 15:08:17 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-03-22 15:08:17 +0500 |
| commit | e34a973f647bc6b7814ad1f3e837689f8478b84a (patch) | |
| tree | 7c8cb1702c16eb68e7acf942d46633a3833bba00 /game/shared/feature.hh | |
| parent | d8f0fcb101c21b3c4d746d20da6e56e7591006e4 (diff) | |
| download | voxelius-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.hh | 6 |
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 */ |
