载入中...
搜索中...
未找到
HexMapGenerator.h
浏览该文件的文档.
105[[nodiscard]] EVENGINE_API_WORLD Result<void> generateHexMap(HexMap& map, const HexMapGeneratorSettings& settings);
Editable hex cell grid: topology, queries, picking and authoring.
Pointy-top hex metrics, directions and vertex helpers.
Move-only, checked operation results for the common layer.
Definition HexCell.h:9
Result< void > generateHexMap(HexMap &map, const HexMapGeneratorSettings &settings)
Replaces the grid's contents with a procedurally generated map.
Definition HexMapGenerator.cpp:1221
Tunables of the reference project's map generator.
Definition HexMapGenerator.h:21
float extraLakeProbability
Probability that a low point becomes an extra lake instead of land.
Definition HexMapGenerator.h:74
float evaporationFactor
Share of a cell's moisture that evaporates before it spreads.
Definition HexMapGenerator.h:59
float highRiseProbability
Probability that a land seed starts one elevation step higher.
Definition HexMapGenerator.h:26
std::int32_t landPercentage
Target share of the map that ends up above the water level, in percent.
Definition HexMapGenerator.h:37
std::int32_t erosionPercentage
Share of the land that is eroded back towards the water level, in percent.
Definition HexMapGenerator.h:54
std::int32_t riverPercentage
Target share of the map covered by rivers, in percent.
Definition HexMapGenerator.h:72
std::int32_t mapBorderX
Unused border of the map in the X direction, in cells.
Definition HexMapGenerator.h:46
float seepageFactor
Share of a cell's moisture that seeps into the ground.
Definition HexMapGenerator.h:65
std::uint32_t seed
Deterministic seed; the same seed and grid always produce the same map.
Definition HexMapGenerator.h:23
float sinkProbability
Probability that a land seed starts one elevation step lower.
Definition HexMapGenerator.h:28
float precipitationFactor
Share of a cell's moisture that rains out as it spreads downwind.
Definition HexMapGenerator.h:61
HexDirection windDirection
Direction the wind blows towards, used by the moisture model.
Definition HexMapGenerator.h:67
std::int32_t mapBorderZ
Unused border of the map in the Z direction, in cells.
Definition HexMapGenerator.h:48
float temperatureJitter
Per-cell random spread added to the temperature.
Definition HexMapGenerator.h:81
std::int32_t regionBorder
Gap kept between two generated regions, in cells.
Definition HexMapGenerator.h:50
float jitterProbability
Probability that a region grows by a random block instead of a square.
Definition HexMapGenerator.h:30
float runoffFactor
Share of a cell's moisture that runs downhill instead of spreading.
Definition HexMapGenerator.h:63
float windStrength
Wind strength, in cells the moisture is pushed per step.
Definition HexMapGenerator.h:69