MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / nextSeason

Function nextSeason

src/OpenLoco/src/Scenario/Scenario.cpp:67–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 Season nextSeason(Season season)
68 {
69 switch (season)
70 {
71 case Season::autumn:
72 return Season::winter;
73 case Season::winter:
74 return Season::spring;
75 case Season::spring:
76 return Season::summer;
77 case Season::summer:
78 default:
79 return Season::autumn;
80 }
81 }
82
83 // 0x00496A18, 0x00496A84 (adapted)
84 void updateSeason(int32_t currentDayOfYear, const ClimateObject* climateObj)

Callers 1

updateSeasonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected