Use patterns from climate objects instead of hardcoded internals

This commit is contained in:
Aaron van Geffen committed 2025-02-04 16:20:08 +01:00
1 parent 41b07b8904
commit c7e364c8dd
4 files changed
+35 -73

No files matched your search

+5
View File
@@ -57,6 +57,11 @@ void ClimateObject::ReadJson(IReadObjectContext* context, json_t& root)
_climate = convertRawClimate(rawClimate);
}
const WeatherPattern& ClimateObject::getPatternForMonth(uint8_t month)
{
return _climate[month];
}
static Climate convertRawClimate(const RawClimate& rawClimate)
{
Climate climate{};