1 /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2 /* If you are missing that file, acquire a complete release at teeworlds.com. */
3 #ifndef GAME_SERVER_EVENTHANDLER_H
4 #define GAME_SERVER_EVENTHANDLER_H
9 static const int MAX_EVENTS
= 128;
10 static const int MAX_DATASIZE
= 128*64;
12 int m_aTypes
[MAX_EVENTS
]; // TODO: remove some of these arrays
13 int m_aOffsets
[MAX_EVENTS
];
14 int m_aSizes
[MAX_EVENTS
];
15 int m_aClientMasks
[MAX_EVENTS
];
16 char m_aData
[MAX_DATASIZE
];
18 class CGameContext
*m_pGameServer
;
23 CGameContext
*GameServer() const { return m_pGameServer
; }
24 void SetGameServer(CGameContext
*pGameServer
);
27 void *Create(int Type
, int Size
, int Mask
= -1);
29 void Snap(int SnappingClient
);