| 547 | } |
| 548 | |
| 549 | bool AFCKernelModule::AddEnterSceneEvent(const std::string& class_name, SCENE_EVENT_FUNCTOR&& cb, const int32_t prio) |
| 550 | { |
| 551 | auto pClassMeta = m_pClassModule->FindMeta(class_name); |
| 552 | ARK_ASSERT_RET_VAL(pClassMeta != nullptr, false); |
| 553 | |
| 554 | auto pCallBack = pClassMeta->GetClassCallBackManager(); |
| 555 | ARK_ASSERT_RET_VAL(pCallBack != nullptr, false); |
| 556 | |
| 557 | return pCallBack->AddEnterSceneEvent(std::forward<SCENE_EVENT_FUNCTOR>(cb), prio); |
| 558 | } |
| 559 | |
| 560 | bool AFCKernelModule::AddMoveEvent(const std::string& class_name, MOVE_EVENT_FUNCTOR&& cb, const int32_t prio) |
| 561 | { |
no test coverage detected