This commit is contained in:
aozhiwei 2020-09-24 15:41:46 +08:00
parent 8b61a75d6f
commit 9babf4c256
4 changed files with 15 additions and 1 deletions

View File

@ -47,7 +47,8 @@ enum NetHandler_e
HID_GroupMgr, HID_GroupMgr,
HID_IMConnMgr, HID_IMConnMgr,
HID_SyncHelper, HID_SyncHelper,
HID_GuildMgr HID_GuildMgr,
HID_Guild
}; };
enum ReadPointFlag enum ReadPointFlag

View File

@ -30,6 +30,8 @@ namespace ss
struct timer_list; struct timer_list;
class Guild class Guild
{ {
public:
enum { HID = HID_Guild };
public: public:
int gameid = 0; int gameid = 0;
long long guild_id = 0; long long guild_id = 0;

View File

@ -110,6 +110,16 @@ void HandlerMgr::RegisterNetMsgHandlers()
RegisterNetMsgHandler(&wsmsghandler, &Player::_CMGuildRank); RegisterNetMsgHandler(&wsmsghandler, &Player::_CMGuildRank);
RegisterNetMsgHandler(&wsmsghandler, &Player::_CMGuildMemberList); RegisterNetMsgHandler(&wsmsghandler, &Player::_CMGuildMemberList);
RegisterNetMsgHandler(&wsmsghandler, &Player::_CMGuildLog); RegisterNetMsgHandler(&wsmsghandler, &Player::_CMGuildLog);
RegisterNetMsgHandler(&guild_msghandler, &Guild::_CMGuildInfo);
RegisterNetMsgHandler(&guild_msghandler, &Guild::_CMGuildJoin);
RegisterNetMsgHandler(&guild_msghandler, &Guild::_CMGuildAgree);
RegisterNetMsgHandler(&guild_msghandler, &Guild::_CMGuildKick);
RegisterNetMsgHandler(&guild_msghandler, &Guild::_CMGuildQuit);
RegisterNetMsgHandler(&guild_msghandler, &Guild::_CMGuildDismiss);
RegisterNetMsgHandler(&guild_msghandler, &Guild::_CMGuildRename);
RegisterNetMsgHandler(&guild_msghandler, &Guild::_CMGuildMemberList);
RegisterNetMsgHandler(&guild_msghandler, &Guild::_CMGuildLog);
} }
void HandlerMgr::ProcGMMsg(unsigned long saddr, int sockhandle, void HandlerMgr::ProcGMMsg(unsigned long saddr, int sockhandle,

View File

@ -25,6 +25,7 @@ class HandlerMgr : public a8::Singleton<HandlerMgr>
f8::NetMsgHandlerObject immsghandler; f8::NetMsgHandlerObject immsghandler;
f8::NetMsgHandlerObject imcmsghandler; f8::NetMsgHandlerObject imcmsghandler;
f8::NetMsgHandlerObject mscmsghandler; f8::NetMsgHandlerObject mscmsghandler;
f8::NetMsgHandlerObject guild_msghandler;
void ProcGMMsg(unsigned long saddr, int sockhandle, void ProcGMMsg(unsigned long saddr, int sockhandle,
const std::string& url, const std::string& querystr); const std::string& url, const std::string& querystr);