3#ifndef GAME_SERVER_EVENTHANDLER_H
4#define GAME_SERVER_EVENTHANDLER_H
39 return static_cast<T *
>(
Create(T::ms_MsgId,
sizeof(T), Mask));
43 void Snap(
int SnappingClient);
45 void EventToSixup(
int *pType,
int *pSize,
const char **ppData);
Definition: eventhandler.h:11
int m_aSizes[MAX_EVENTS]
Definition: eventhandler.h:20
void SetGameServer(CGameContext *pGameServer)
Definition: eventhandler.cpp:20
T * Create(CClientMask Mask=CClientMask().set())
Definition: eventhandler.h:37
CEventHandler()
Definition: eventhandler.cpp:14
int m_NumEvents
Definition: eventhandler.h:27
int m_aOffsets[MAX_EVENTS]
Definition: eventhandler.h:19
int m_aTypes[MAX_EVENTS]
Definition: eventhandler.h:18
char m_aData[MAX_DATASIZE]
Definition: eventhandler.h:22
void EventToSixup(int *pType, int *pSize, const char **ppData)
Definition: eventhandler.cpp:71
void Clear()
Definition: eventhandler.cpp:42
int m_CurrentOffset
Definition: eventhandler.h:26
@ MAX_DATASIZE
Definition: eventhandler.h:15
@ MAX_EVENTS
Definition: eventhandler.h:14
CGameContext * GameServer() const
Definition: eventhandler.h:30
void Snap(int SnappingClient)
Definition: eventhandler.cpp:48
CClientMask m_aClientMasks[MAX_EVENTS]
Definition: eventhandler.h:21
class CGameContext * m_pGameServer
Definition: eventhandler.h:24
void * Create(int Type, int Size, CClientMask Mask=CClientMask().set())
Definition: eventhandler.cpp:25
Definition: gamecontext.h:79
std::bitset< MAX_CLIENTS > CClientMask
Definition: protocol.h:132