MCPcopy Create free account
hub / github.com/EasyRPG/Player / Update

Method Update

src/game_commonevent.cpp:52–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52AsyncOp Game_CommonEvent::Update(bool resume_async) {
53 if (interpreter && IsWaitingBackgroundExecution(resume_async)) {
54 assert(interpreter->IsRunning());
55 interpreter->Update(!resume_async);
56
57 // Suspend due to async op ...
58 if (interpreter->IsAsyncPending()) {
59 return interpreter->GetAsyncOp();
60 }
61 }
62
63 return {};
64}
65
66int Game_CommonEvent::GetId() const {
67 return common_event_id;

Callers

nothing calls this directly

Calls 3

IsRunningMethod · 0.80
IsAsyncPendingMethod · 0.45
GetAsyncOpMethod · 0.45

Tested by

no test coverage detected