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

Function update

src/OpenLoco/src/Title.cpp:215–240  ·  view source on GitHub ↗

0x00444387

Source from the content-addressed store, hash-verified

213
214 // 0x00444387
215 void update()
216 {
217 if (!SceneManager::isTitleMode())
218 {
219 return;
220 }
221
222 SceneManager::resetSceneAge();
223
224 if (_waitCounter > 0)
225 {
226 _waitCounter -= 1;
227 return;
228 }
229
230 do
231 {
232 if (_sequenceIterator >= _titleSequence.end())
233 {
234 return;
235 }
236
237 auto& command = *_sequenceIterator++;
238 std::visit([](auto&& step) { handleStep(step); }, command);
239 } while (_waitCounter == 0);
240 }
241}

Callers 1

reloadFunction · 0.70

Calls 4

isTitleModeFunction · 0.85
resetSceneAgeFunction · 0.85
handleStepFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected