f8/cpp/netmsghandler.cc
2018-11-26 21:09:20 +08:00

17 lines
405 B
C++

#include <a8/a8.h>
#include <google/protobuf/message.h>
#include <google/protobuf/descriptor.h>
#include "framework/cpp/protoutils.h"
#include "framework/cpp/netmsghandler.h"
namespace f8
{
NetMsgHandler* GetNetMsgHandler(NetMsgHandlerObject* handlers,
unsigned short msgid)
{
return msgid < MAX_MSG_ID ? handlers->handlers[msgid] : nullptr;
}
}