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

Method AddContainerCallBack

src/plugin/kernel/src/AFClassCallBackManager.cpp:72–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72bool AFClassCallBackManager::AddContainerCallBack(
73 const uint32_t index, CONTAINER_EVENT_FUNCTOR&& cb, const int32_t prio)
74{
75 auto iter = container_call_backs_list_.find(index);
76 if (iter == container_call_backs_list_.end())
77 {
78 ContainerCallBacks call_backs;
79
80 call_backs.insert(std::make_pair(prio, std::forward<CONTAINER_EVENT_FUNCTOR>(cb)));
81 container_call_backs_list_.insert(std::make_pair(index, call_backs));
82 }
83 else
84 {
85 iter->second.insert(std::make_pair(prio, std::forward<CONTAINER_EVENT_FUNCTOR>(cb)));
86 }
87
88 return true;
89}
90
91bool AFClassCallBackManager::AddLeaveSceneEvent(SCENE_EVENT_FUNCTOR&& cb, const int32_t prio)
92{

Callers

nothing calls this directly

Calls 3

findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected