made rcon auto completion serverside. Closes #97
[twcon.git] / src / game / server / eventhandler.h
blob721b59afa3ce1858ca1bee54665db5222f945c32
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
6 //
7 class CEventHandler
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;
20 int m_CurrentOffset;
21 int m_NumEvents;
22 public:
23 CGameContext *GameServer() const { return m_pGameServer; }
24 void SetGameServer(CGameContext *pGameServer);
26 CEventHandler();
27 void *Create(int Type, int Size, int Mask = -1);
28 void Clear();
29 void Snap(int SnappingClient);
32 #endif