MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / CallEvent

Method CallEvent

Source/Editor/Cooker/GameCooker.cpp:632–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630}
631
632void 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
649void GameCookerImpl::ReportProgress(const String& info, float totalProgress)
650{

Callers

nothing calls this directly

Calls 3

OnEventFunction · 0.85
AddParamMethod · 0.80
GetMethodMethod · 0.45

Tested by

no test coverage detected