Tunables of the reference project's map generator. 更多...
#include <HexMapGenerator.h>
Public 属性 | |
| std::uint32_t | seed = 0u |
| Deterministic seed; the same seed and grid always produce the same map. | |
| float | highRiseProbability = 0.25f |
| Probability that a land seed starts one elevation step higher. | |
| float | sinkProbability = 0.2f |
| Probability that a land seed starts one elevation step lower. | |
| float | jitterProbability = 0.25f |
| Probability that a region grows by a random block instead of a square. | |
| std::int32_t | chunkSizeMin = 30 |
| Smallest land-region growth step, in cells. | |
| std::int32_t | chunkSizeMax = 100 |
| Largest land-region growth step, in cells. | |
| std::int32_t | landPercentage = 50 |
| Target share of the map that ends up above the water level, in percent. | |
| std::int32_t | waterLevel = 3 |
| Cells at or below this elevation are flooded. | |
| std::int32_t | elevationMinimum = -2 |
| Lowest elevation the generator writes. | |
| std::int32_t | elevationMaximum = 8 |
| Highest elevation the generator writes. | |
| std::int32_t | mapBorderX = 5 |
| Unused border of the map in the X direction, in cells. | |
| std::int32_t | mapBorderZ = 5 |
| Unused border of the map in the Z direction, in cells. | |
| std::int32_t | regionBorder = 5 |
| Gap kept between two generated regions, in cells. | |
| std::int32_t | regionCount = 1 |
| Number of independent land regions. | |
| std::int32_t | erosionPercentage = 50 |
| Share of the land that is eroded back towards the water level, in percent. | |
| float | startingMoisture = 0.1f |
Moisture every cell starts with, in [0, 1]. | |
| float | evaporationFactor = 0.5f |
| Share of a cell's moisture that evaporates before it spreads. | |
| float | precipitationFactor = 0.25f |
| Share of a cell's moisture that rains out as it spreads downwind. | |
| float | runoffFactor = 0.25f |
| Share of a cell's moisture that runs downhill instead of spreading. | |
| float | seepageFactor = 0.25f |
| Share of a cell's moisture that seeps into the ground. | |
| HexDirection | windDirection = HexDirection::NW |
| Direction the wind blows towards, used by the moisture model. | |
| float | windStrength = 4.f |
| Wind strength, in cells the moisture is pushed per step. | |
| std::int32_t | riverPercentage = 10 |
| Target share of the map covered by rivers, in percent. | |
| float | extraLakeProbability = 0.25f |
| Probability that a low point becomes an extra lake instead of land. | |
| float | lowTemperature = 0.f |
| Temperature at the lowest elevation. | |
| float | highTemperature = 1.f |
| Temperature at the highest elevation. | |
| float | temperatureJitter = 0.1f |
| Per-cell random spread added to the temperature. | |
详细描述
Tunables of the reference project's map generator.
The defaults are the reference MapGeneratorSettings defaults, so a call with a bare settings value reproduces the Unity generator's behaviour.
在文件 HexMapGenerator.h 第 21 行定义.
类成员变量说明
◆ chunkSizeMax
| std::int32_t eve::hexmap::HexMapGeneratorSettings::chunkSizeMax = 100 |
Largest land-region growth step, in cells.
在文件 HexMapGenerator.h 第 35 行定义.
◆ chunkSizeMin
| std::int32_t eve::hexmap::HexMapGeneratorSettings::chunkSizeMin = 30 |
Smallest land-region growth step, in cells.
在文件 HexMapGenerator.h 第 33 行定义.
◆ elevationMaximum
| std::int32_t eve::hexmap::HexMapGeneratorSettings::elevationMaximum = 8 |
Highest elevation the generator writes.
在文件 HexMapGenerator.h 第 43 行定义.
◆ elevationMinimum
| std::int32_t eve::hexmap::HexMapGeneratorSettings::elevationMinimum = -2 |
Lowest elevation the generator writes.
在文件 HexMapGenerator.h 第 41 行定义.
◆ erosionPercentage
| std::int32_t eve::hexmap::HexMapGeneratorSettings::erosionPercentage = 50 |
Share of the land that is eroded back towards the water level, in percent.
在文件 HexMapGenerator.h 第 54 行定义.
◆ evaporationFactor
| float eve::hexmap::HexMapGeneratorSettings::evaporationFactor = 0.5f |
Share of a cell's moisture that evaporates before it spreads.
在文件 HexMapGenerator.h 第 59 行定义.
◆ extraLakeProbability
| float eve::hexmap::HexMapGeneratorSettings::extraLakeProbability = 0.25f |
Probability that a low point becomes an extra lake instead of land.
在文件 HexMapGenerator.h 第 74 行定义.
◆ highRiseProbability
| float eve::hexmap::HexMapGeneratorSettings::highRiseProbability = 0.25f |
Probability that a land seed starts one elevation step higher.
在文件 HexMapGenerator.h 第 26 行定义.
◆ highTemperature
| float eve::hexmap::HexMapGeneratorSettings::highTemperature = 1.f |
Temperature at the highest elevation.
在文件 HexMapGenerator.h 第 79 行定义.
◆ jitterProbability
| float eve::hexmap::HexMapGeneratorSettings::jitterProbability = 0.25f |
Probability that a region grows by a random block instead of a square.
在文件 HexMapGenerator.h 第 30 行定义.
◆ landPercentage
| std::int32_t eve::hexmap::HexMapGeneratorSettings::landPercentage = 50 |
Target share of the map that ends up above the water level, in percent.
在文件 HexMapGenerator.h 第 37 行定义.
◆ lowTemperature
| float eve::hexmap::HexMapGeneratorSettings::lowTemperature = 0.f |
Temperature at the lowest elevation.
在文件 HexMapGenerator.h 第 77 行定义.
◆ mapBorderX
| std::int32_t eve::hexmap::HexMapGeneratorSettings::mapBorderX = 5 |
Unused border of the map in the X direction, in cells.
在文件 HexMapGenerator.h 第 46 行定义.
◆ mapBorderZ
| std::int32_t eve::hexmap::HexMapGeneratorSettings::mapBorderZ = 5 |
Unused border of the map in the Z direction, in cells.
在文件 HexMapGenerator.h 第 48 行定义.
◆ precipitationFactor
| float eve::hexmap::HexMapGeneratorSettings::precipitationFactor = 0.25f |
Share of a cell's moisture that rains out as it spreads downwind.
在文件 HexMapGenerator.h 第 61 行定义.
◆ regionBorder
| std::int32_t eve::hexmap::HexMapGeneratorSettings::regionBorder = 5 |
Gap kept between two generated regions, in cells.
在文件 HexMapGenerator.h 第 50 行定义.
◆ regionCount
| std::int32_t eve::hexmap::HexMapGeneratorSettings::regionCount = 1 |
Number of independent land regions.
在文件 HexMapGenerator.h 第 52 行定义.
◆ riverPercentage
| std::int32_t eve::hexmap::HexMapGeneratorSettings::riverPercentage = 10 |
Target share of the map covered by rivers, in percent.
在文件 HexMapGenerator.h 第 72 行定义.
◆ runoffFactor
| float eve::hexmap::HexMapGeneratorSettings::runoffFactor = 0.25f |
Share of a cell's moisture that runs downhill instead of spreading.
在文件 HexMapGenerator.h 第 63 行定义.
◆ seed
| std::uint32_t eve::hexmap::HexMapGeneratorSettings::seed = 0u |
Deterministic seed; the same seed and grid always produce the same map.
在文件 HexMapGenerator.h 第 23 行定义.
◆ seepageFactor
| float eve::hexmap::HexMapGeneratorSettings::seepageFactor = 0.25f |
Share of a cell's moisture that seeps into the ground.
在文件 HexMapGenerator.h 第 65 行定义.
◆ sinkProbability
| float eve::hexmap::HexMapGeneratorSettings::sinkProbability = 0.2f |
Probability that a land seed starts one elevation step lower.
在文件 HexMapGenerator.h 第 28 行定义.
◆ startingMoisture
| float eve::hexmap::HexMapGeneratorSettings::startingMoisture = 0.1f |
Moisture every cell starts with, in [0, 1].
在文件 HexMapGenerator.h 第 57 行定义.
◆ temperatureJitter
| float eve::hexmap::HexMapGeneratorSettings::temperatureJitter = 0.1f |
Per-cell random spread added to the temperature.
在文件 HexMapGenerator.h 第 81 行定义.
◆ waterLevel
| std::int32_t eve::hexmap::HexMapGeneratorSettings::waterLevel = 3 |
Cells at or below this elevation are flooded.
在文件 HexMapGenerator.h 第 39 行定义.
◆ windDirection
| HexDirection eve::hexmap::HexMapGeneratorSettings::windDirection = HexDirection::NW |
Direction the wind blows towards, used by the moisture model.
在文件 HexMapGenerator.h 第 67 行定义.
◆ windStrength
| float eve::hexmap::HexMapGeneratorSettings::windStrength = 4.f |
Wind strength, in cells the moisture is pushed per step.
在文件 HexMapGenerator.h 第 69 行定义.
该结构体的文档由以下文件生成:
- src/modules/hexmap/HexMapGenerator.h