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

Method AddEventCallBack

src/plugin/kernel/src/AFCKernelModule.cpp:399–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399bool AFCKernelModule::AddEventCallBack(const AFGUID& self, const int nEventID, EVENT_PROCESS_FUNCTOR&& cb)
400{
401 std::shared_ptr<AFIEntity> pEntity = GetEntity(self);
402 ARK_ASSERT_RET_VAL(pEntity != nullptr, false);
403
404 auto pEventManager = GetEventManager(pEntity);
405 ARK_ASSERT_RET_VAL(pEventManager != nullptr, false);
406
407 return pEventManager->AddEventCallBack(nEventID, std::forward<EVENT_PROCESS_FUNCTOR>(cb));
408}
409
410bool AFCKernelModule::AddClassCallBack(const std::string& class_name, CLASS_EVENT_FUNCTOR&& cb, const int32_t prio)
411{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected