diff options
Diffstat (limited to 'game/shared/feature.hh')
| -rw-r--r-- | game/shared/feature.hh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/game/shared/feature.hh b/game/shared/feature.hh new file mode 100644 index 0000000..eb7cf2a --- /dev/null +++ b/game/shared/feature.hh @@ -0,0 +1,18 @@ +#ifndef SHARED_FEATURE_HH +#define SHARED_FEATURE_HH 1 +#pragma once + +#include "shared/types.hh" + +class Dimension; +class VoxelStorage; + +class Feature final : public std::vector<std::pair<voxel_pos, voxel_id>> { +public: + explicit Feature(void) = default; + virtual ~Feature(void) = default; + 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; +}; + +#endif /* SHARED_FEATURE_HH */ |
