| 630 | } |
| 631 | |
| 632 | void GameCookerImpl::CallEvent(GameCooker::EventType type) |
| 633 | { |
| 634 | if (Internal_OnEvent == nullptr) |
| 635 | { |
| 636 | auto c = GameCooker::GetStaticClass(); |
| 637 | if (c) |
| 638 | Internal_OnEvent = c->GetMethod("Internal_OnEvent", 1); |
| 639 | ASSERT(GameCookerImpl::Internal_OnEvent); |
| 640 | } |
| 641 | |
| 642 | MainThreadManagedInvokeAction::ParamsBuilder params; |
| 643 | params.AddParam((int32)type); |
| 644 | MainThreadManagedInvokeAction::Invoke(Internal_OnEvent, params); |
| 645 | |
| 646 | GameCooker::OnEvent(type); |
| 647 | } |
| 648 | |
| 649 | void GameCookerImpl::ReportProgress(const String& info, float totalProgress) |
| 650 | { |