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 ENGINE_SHARED_PROTOCOL7_H
4#define ENGINE_SHARED_PROTOCOL7_H
5
6namespace protocol7 {
7
8enum
9{
10 NETMSG_NULL = 0,
11
12 // the first thing sent by the client
13 // contains the version info for the client
14 NETMSG_INFO = 1,
15
16 // sent by server
17 NETMSG_MAP_CHANGE, // sent when client should switch map
18 NETMSG_MAP_DATA, // map transfer, contains a chunk of the map file
19 NETMSG_SERVERINFO,
20 NETMSG_CON_READY, // connection is ready, client should send start info
21 NETMSG_SNAP, // normal snapshot, multiple parts
22 NETMSG_SNAPEMPTY, // empty snapshot
23 NETMSG_SNAPSINGLE, // ?
24 NETMSG_SNAPSMALL, //
25 NETMSG_INPUTTIMING, // reports how off the input was
26 NETMSG_RCON_AUTH_ON, // rcon authentication enabled
27 NETMSG_RCON_AUTH_OFF, // rcon authentication disabled
28 NETMSG_RCON_LINE, // line that should be printed to the remote console
29 NETMSG_RCON_CMD_ADD,
30 NETMSG_RCON_CMD_REM,
31
32 NETMSG_UNUSED1,
33 NETMSG_UNUSED2,
34
35 // sent by client
36 NETMSG_READY, //
37 NETMSG_ENTERGAME,
38 NETMSG_INPUT, // contains the inputdata from the client
39 NETMSG_RCON_CMD, //
40 NETMSG_RCON_AUTH, //
41 NETMSG_REQUEST_MAP_DATA, //
42
43 NETMSG_UNUSED3,
44 NETMSG_UNUSED4,
45
46 // sent by both
47 NETMSG_PING,
48 NETMSG_PING_REPLY,
49 NETMSG_UNUSED5,
50
51 NETMSG_MAPLIST_ENTRY_ADD, // todo 0.8: move up
52 NETMSG_MAPLIST_ENTRY_REM,
53};
54
55}
56
57#endif
58