RM
Size: a a a
RM
AB
AB
AB
RM
AB
RM
RM
RM
RM
RM
AB
NetServer.RegMsgCallback(NET_SERVER_TYPE::SV_WORLD, protoid::proto_common_clsv_relationship_register_send, proto::proto_common_clsv_relationship_register_recv);
bool RegMsgCallback(const NET_SERVER_TYPE type, const uint16_t protoid, NET_MSG_FUNCTOR&& cb);
RM
bool RegMsgCallback(const NET_SERVER_TYPE type, const uint16_t protoid, NET_MSG_FUNCTOR&& cb);
RM
RM
AB
void f(); // function, can be casted to fptr
struct S{ void g(); } // member function, can be casted to memfunptr
RM
template<typename BaseType>
bool RegMsgCallback(BaseType* pBase, void (BaseType::*handleRecv)(const CNetMsg&))
{
NET_MSG_FUNCTOR functor = std::bind(handleRecv, pBase, std::placeholders::_1);
return RegMsgCallback(std::move(functor));
}
RM
bool RegMsgCallback(const NET_SERVER_TYPE type, const uint16_t protoid, NET_MSG_FUNCTOR&& cb);
RM
O