| 50 | } |
| 51 | |
| 52 | AsyncOp 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 | |
| 66 | int Game_CommonEvent::GetId() const { |
| 67 | return common_event_id; |
nothing calls this directly
no test coverage detected