51 lines
1.3 KiB
C++
51 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include <PacketStruct_CG.h>
|
|
#include "PacketHandler.h"
|
|
|
|
// <PROTOTYPEs>
|
|
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();
|
|
|
|
//------------------------------------------------------------------------------
|
|
// <PACKET HANDLERs>
|
|
// Declaration & Implementation
|
|
//
|
|
public:
|
|
struct RECV
|
|
{
|
|
//HANDLER_CW_RECV_DECL(~~);
|
|
};
|
|
|
|
struct SEND
|
|
{
|
|
//HANDLER_CW_SEND_DECL(~~);
|
|
//¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦´
|
|
//HANDLER_CW_SEND_DECL(CG_CONNECTION_HEARTBEAT_SYN);
|
|
//¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦´
|
|
//¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦¬¦´
|
|
};
|
|
};
|
|
|
|
|
|
|