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

Function update

src/OpenLoco/src/World/StationManager.cpp:66–77  ·  view source on GitHub ↗

0x0048B1FA

Source from the content-addressed store, hash-verified

64
65 // 0x0048B1FA
66 void update()
67 {
68 if (Game::hasFlags(GameStateFlags::tileManagerLoaded) && !SceneManager::isEditorMode())
69 {
70 const auto id = StationId(ScenarioManager::getScenarioTicks() & 0x3FF);
71 auto station = get(id);
72 if (station != nullptr && !station->empty())
73 {
74 station->update();
75 }
76 }
77 }
78
79 // 0x0048DDC3
80 void updateLabels()

Callers

nothing calls this directly

Calls 7

isEditorModeFunction · 0.85
StationIdEnum · 0.85
getScenarioTicksFunction · 0.85
hasFlagsFunction · 0.70
getFunction · 0.70
emptyMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected