MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / ScenarioCheckObjective

Function ScenarioCheckObjective

src/openrct2/scenario/Scenario.cpp:621–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621static void ScenarioCheckObjective(GameState_t& gameState)
622{
623 auto& park = gameState.park;
624 auto status = gameState.scenarioOptions.objective.Check(park, gameState);
625 if (status == ObjectiveStatus::Success)
626 {
627 ScenarioSuccess(gameState);
628 }
629 else if (status == ObjectiveStatus::Failure)
630 {
631 ScenarioFailure(gameState);
632 }
633}

Callers 2

ScenarioDayUpdateFunction · 0.85
ScenarioMonthUpdateFunction · 0.85

Calls 3

ScenarioSuccessFunction · 0.85
ScenarioFailureFunction · 0.85
CheckMethod · 0.80

Tested by

no test coverage detected