#pragma once #include #include "PacketHandler.h" // class User; //------------------------------------------------------------------------------------------------- #define HANDLER_CW_RECV_DECL(fnName) \ static void On##fnName(Player* pUser, sSIG_NETMSG* pSIG_NETMSG) #define HANDLER_CW_RECV_IMPL(fnName) \ void Handler_CW::RECV::On##fnName(Player* pUser, sSIG_NETMSG* pSIG_NETMSG) #define HANDLER_CW_SEND_DECL(fnName) \ static void Send##fnName(Player* pUser, sSIG_NETMSG* pSIG_NETMSG) #define HANDLER_CW_SEND_IMPL(fnName) \ void Handler_CW::SEND::Send##fnName(Player* pUser, sSIG_NETMSG* pSIG_NETMSG) class Handler_CW { public: static void RegisterHandler_ALL(PACKET_HANDLER_DELEGATOR pInstance); private: static sPACKET_HANDLER_INFO* GetHandlerInfo(); //------------------------------------------------------------------------------ // // Declaration & Implementation // public: struct RECV { //HANDLER_CW_RECV_DECL(~~); }; struct SEND { //HANDLER_CW_SEND_DECL(~~); //收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收朽 //HANDLER_CW_SEND_DECL(CG_CONNECTION_HEARTBEAT_SYN); //收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收朽 //收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收收朽 }; };