MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / AddCommonClassEvent

Method AddCommonClassEvent

src/plugin/kernel/src/AFCKernelModule.cpp:521–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519}
520
521bool AFCKernelModule::AddCommonClassEvent(CLASS_EVENT_FUNCTOR&& cb, const int32_t prio)
522{
523 auto& class_meta_list = m_pClassModule->GetMetaList();
524 for (auto& iter : class_meta_list)
525 {
526 auto pClassMeta = iter.second;
527 if (nullptr == pClassMeta)
528 {
529 continue;
530 }
531
532 AddClassCallBack(iter.first, std::forward<CLASS_EVENT_FUNCTOR>(cb), prio);
533 }
534
535 return true;
536}
537
538bool AFCKernelModule::AddLeaveSceneEvent(const std::string& class_name, SCENE_EVENT_FUNCTOR&& cb, const int32_t prio)
539{

Callers 1

InitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected