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

Method RegMsgCallback

src/plugin/net/src/AFCNetClientService.cpp:58–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58bool AFCNetClientService::RegMsgCallback(const int msg_id, const NET_MSG_FUNCTOR&& cb)
59{
60 if (net_msg_callbacks_.find(msg_id) != net_msg_callbacks_.end())
61 {
62 return false;
63 }
64 else
65 {
66 net_msg_callbacks_.insert(std::make_pair(msg_id, std::forward<const NET_MSG_FUNCTOR>(cb)));
67 return true;
68 }
69}
70
71bool AFCNetClientService::RegForwardMsgCallback(const NET_MSG_FUNCTOR&& cb)
72{

Callers

nothing calls this directly

Calls 3

findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected