Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarWorldParameters.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-27 19:24:35 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-27 19:24:35 +1000
commit14b9689b6d4f4ad5276c88130dc6e449bedc0709 (patch)
tree829e760821fb887470ba2a820d309db1428f7f17 /source/game/StarWorldParameters.cpp
parentc9e889723b7af832322d178975e6e440d6cd3ae5 (diff)
Change formatting to use fmtlib (STILL NEED TO CHANGE TO FMT SYNTAX!)
Diffstat (limited to 'source/game/StarWorldParameters.cpp')
-rw-r--r--source/game/StarWorldParameters.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/source/game/StarWorldParameters.cpp b/source/game/StarWorldParameters.cpp
index c12c18e..c1901c3 100644
--- a/source/game/StarWorldParameters.cpp
+++ b/source/game/StarWorldParameters.cpp
@@ -162,7 +162,24 @@ TerrestrialWorldParameters::TerrestrialWorldParameters(Json const& store) : Visi
}
TerrestrialWorldParameters &TerrestrialWorldParameters::operator=(TerrestrialWorldParameters const& terrestrialWorldParameters) {
- *this = terrestrialWorldParameters;
+ this->primaryBiome = terrestrialWorldParameters.primaryBiome;
+ this->primarySurfaceLiquid = terrestrialWorldParameters.primarySurfaceLiquid;
+ this->sizeName = terrestrialWorldParameters.sizeName;
+ this->hueShift = terrestrialWorldParameters.hueShift;
+
+ this->skyColoring = terrestrialWorldParameters.skyColoring;
+ this->dayLength = terrestrialWorldParameters.dayLength;
+
+ this->blockNoiseConfig = terrestrialWorldParameters.blockNoiseConfig;
+ this->blendNoiseConfig = terrestrialWorldParameters.blendNoiseConfig;
+ this->blendSize = terrestrialWorldParameters.blendSize;
+
+ this->spaceLayer = terrestrialWorldParameters.spaceLayer;
+ this->atmosphereLayer = terrestrialWorldParameters.atmosphereLayer;
+ this->surfaceLayer = terrestrialWorldParameters.surfaceLayer;
+ this->subsurfaceLayer = terrestrialWorldParameters.subsurfaceLayer;
+ this->undergroundLayers = terrestrialWorldParameters.undergroundLayers;
+ this->coreLayer = terrestrialWorldParameters.coreLayer;
return *this;
}