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

Function update

src/OpenLoco/src/Intro.cpp:206–224  ·  view source on GitHub ↗

0x0046AE0C

Source from the content-addressed store, hash-verified

204
205 // 0x0046AE0C
206 void update()
207 {
208 auto& drawingEngine = Gfx::getDrawingEngine();
209 auto& drawingCtx = drawingEngine.getDrawingContext();
210
211 if (_state == State::end)
212 {
213 updateEnd(drawingCtx);
214 }
215 else if (_state == State::end2)
216 {
217 updateEnd2(drawingCtx);
218 }
219 else if (enumValue(_state) < std::size(kUpdateFunctions))
220 {
221 kUpdateFunctions[enumValue(_state)](drawingCtx);
222 }
223 sub_431695(0);
224 }
225}

Callers

nothing calls this directly

Calls 4

updateEndFunction · 0.85
updateEnd2Function · 0.85
enumValueFunction · 0.85
sub_431695Function · 0.85

Tested by

no test coverage detected