From 40612dd7da8e4f3ad49dcb072dd0b99c3290d8be Mon Sep 17 00:00:00 2001 From: MihailRis Date: Fri, 11 Oct 2024 19:06:38 +0300 Subject: [PATCH] update doc-comments --- src/world/generator/GeneratorDef.hpp | 7 +++++++ src/world/generator/WorldGenerator.cpp | 3 +++ 2 files changed, 10 insertions(+) diff --git a/src/world/generator/GeneratorDef.hpp b/src/world/generator/GeneratorDef.hpp index f23bea57..10ab6ff4 100644 --- a/src/world/generator/GeneratorDef.hpp +++ b/src/world/generator/GeneratorDef.hpp @@ -149,6 +149,13 @@ public: uint bpd ) = 0; + /// @brief Generate a list of structures placements. Structures may be + /// placed to nearest N chunks also (position of out area), where N is + /// wide-structs-chunks-radius + /// @param offset position of the area + /// @param size size of the area (blocks) + /// @param seed world seed + /// @param chunkHeight chunk height to use as heights multiplier virtual std::vector placeStructuresWide( const glm::ivec2& offset, const glm::ivec2& size, diff --git a/src/world/generator/WorldGenerator.cpp b/src/world/generator/WorldGenerator.cpp index 6c1fdca7..db3d157d 100644 --- a/src/world/generator/WorldGenerator.cpp +++ b/src/world/generator/WorldGenerator.cpp @@ -17,7 +17,10 @@ static debug::Logger logger("world-generator"); +/// @brief Max number of biome parameters static inline constexpr uint MAX_PARAMETERS = 4; + +/// @brief Initial + wide_structs + biomes + heightmaps + complete static inline constexpr uint BASIC_PROTOTYPE_LAYERS = 5; WorldGenerator::WorldGenerator(