From 6c2abde5c99a236453b795abaa6d7d70105e31f7 Mon Sep 17 00:00:00 2001 From: untodesu Date: Fri, 26 Dec 2025 14:50:33 +0500 Subject: Just a big Ctrl+H refactoring --- src/game/shared/world/dimension.hh | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'src/game/shared/world/dimension.hh') diff --git a/src/game/shared/world/dimension.hh b/src/game/shared/world/dimension.hh index 6549bf6..b57640a 100644 --- a/src/game/shared/world/dimension.hh +++ b/src/game/shared/world/dimension.hh @@ -3,26 +3,15 @@ #include "shared/const.hh" #include "shared/types.hh" -namespace io -{ class ConfigMap; -} // namespace io -namespace world -{ class Chunk; class Voxel; class VoxelStorage; -} // namespace world -namespace world -{ using dimension_entropy_map = std::array; using dimension_height_map = std::array; -} // namespace world -namespace world -{ class Dimension { public: explicit Dimension(std::string_view name, float gravity); @@ -48,7 +37,7 @@ public: bool set_voxel(const Voxel* voxel, const chunk_pos& cpos, const local_pos& lpos); public: - virtual void init(io::ConfigMap& config); + virtual void init(ConfigMap& config); virtual void init_late(std::uint64_t global_seed); virtual bool generate(const chunk_pos& cpos, VoxelStorage& voxels); @@ -61,18 +50,12 @@ private: emhash8::HashMap m_chunkmap; float m_gravity; }; -} // namespace world -namespace world -{ struct ChunkComponent final { chunk_pos cpos; Chunk* chunk; }; -} // namespace world -namespace world -{ struct ChunkCreateEvent final { Dimension* dimension; chunk_pos cpos; @@ -98,4 +81,3 @@ struct VoxelSetEvent final { local_pos lpos; Chunk* chunk; }; -} // namespace world -- cgit