add recharge

This commit is contained in:
2026-11-10 19:54:00 +01:00
parent ea0eedc0fb
commit 772d4494e8
30 changed files with 1357 additions and 1073 deletions
+4
View File
@@ -9,6 +9,7 @@
TerrainMovementConfig::TerrainMovementConfig()
: waterHeightThreshold(6),
coastBeachWidthKm(0.022f),
mountainRockHeightKm(2.3f),
snowHeightKm(3.1f),
polarSnowLineEnabled(true),
@@ -61,6 +62,9 @@ bool TerrainMovementManager::loadConfig(const QString &filePath)
if (root.hasChild("water_height_threshold")) {
m_config.waterHeightThreshold = root["water_height_threshold"].asInt(6);
}
if (root.hasChild("coast_beach_width_km")) {
m_config.coastBeachWidthKm = root["coast_beach_width_km"].asFloat(0.022f);
}
if (root.hasChild("mountain_rock_height_km")) {
m_config.mountainRockHeightKm = root["mountain_rock_height_km"].asFloat(2.3f);
}