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

Function updateUntil

test/tests/PlayTests.cpp:73–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72template<class Fn>
73static bool updateUntil(int maxSteps, Fn&& fn)
74{
75 while (maxSteps-- && !fn())
76 {
77 gameStateUpdateLogic();
78 }
79 return maxSteps > 0;
80}
81
82template<class GA, class... Args>
83static void execute(Args&&... args)

Callers 1

TEST_FFunction · 0.85

Calls 1

gameStateUpdateLogicFunction · 0.85

Tested by

no test coverage detected