DDNet documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
protocol_ex.h
Go to the documentation of this file.
1
#ifndef ENGINE_SHARED_PROTOCOL_EX_H
2
#define ENGINE_SHARED_PROTOCOL_EX_H
3
4
#include <
engine/shared/uuid_manager.h
>
5
6
class
CMsgPacker
;
7
class
CUnpacker
;
8
9
enum
// NOLINT(readability-enum-initial-value)
10
{
11
NETMSG_EX_INVALID
=
UUID_INVALID
,
12
NETMSG_EX_UNKNOWN
=
UUID_UNKNOWN
,
13
14
OFFSET_NETMSG_UUID
=
OFFSET_UUID
,
15
16
__NETMSG_UUID_HELPER
=
OFFSET_NETMSG_UUID
- 1,
17
#define UUID(id, name) id,
18
#include "
protocol_ex_msgs.h
"
19
#undef UUID
20
OFFSET_TEEHISTORIAN_UUID
,
21
};
22
23
enum
24
{
25
UNPACKMESSAGE_ERROR
= 0,
26
UNPACKMESSAGE_OK
,
27
UNPACKMESSAGE_ANSWER
,
28
};
29
30
enum
31
{
32
SERVERCAP_CURVERSION
= 5,
33
SERVERCAPFLAG_DDNET
= 1 << 0,
34
SERVERCAPFLAG_CHATTIMEOUTCODE
= 1 << 1,
35
SERVERCAPFLAG_ANYPLAYERFLAG
= 1 << 2,
36
SERVERCAPFLAG_PINGEX
= 1 << 3,
37
SERVERCAPFLAG_ALLOWDUMMY
= 1 << 4,
38
SERVERCAPFLAG_SYNCWEAPONINPUT
= 1 << 5,
39
};
40
41
void
RegisterUuids
(
CUuidManager
*pManager);
42
int
UnpackMessageId
(
int
*pId,
bool
*pSys,
CUuid
*pUuid,
CUnpacker
*pUnpacker,
CMsgPacker
*pPacker);
43
44
#endif
// ENGINE_SHARED_PROTOCOL_EX_H
CMsgPacker
Definition
message.h:10
CUnpacker
Definition
packer.h:54
CUuidManager
Definition
uuid_manager.h:53
UnpackMessageId
int UnpackMessageId(int *pId, bool *pSys, CUuid *pUuid, CUnpacker *pUnpacker, CMsgPacker *pPacker)
Definition
protocol_ex.cpp:20
RegisterUuids
void RegisterUuids(CUuidManager *pManager)
Definition
protocol_ex.cpp:13
NETMSG_EX_INVALID
@ NETMSG_EX_INVALID
Definition
protocol_ex.h:11
__NETMSG_UUID_HELPER
@ __NETMSG_UUID_HELPER
Definition
protocol_ex.h:16
OFFSET_TEEHISTORIAN_UUID
@ OFFSET_TEEHISTORIAN_UUID
Definition
protocol_ex.h:68
OFFSET_NETMSG_UUID
@ OFFSET_NETMSG_UUID
Definition
protocol_ex.h:14
NETMSG_EX_UNKNOWN
@ NETMSG_EX_UNKNOWN
Definition
protocol_ex.h:12
SERVERCAPFLAG_PINGEX
@ SERVERCAPFLAG_PINGEX
Definition
protocol_ex.h:36
SERVERCAPFLAG_CHATTIMEOUTCODE
@ SERVERCAPFLAG_CHATTIMEOUTCODE
Definition
protocol_ex.h:34
SERVERCAP_CURVERSION
@ SERVERCAP_CURVERSION
Definition
protocol_ex.h:32
SERVERCAPFLAG_ANYPLAYERFLAG
@ SERVERCAPFLAG_ANYPLAYERFLAG
Definition
protocol_ex.h:35
SERVERCAPFLAG_SYNCWEAPONINPUT
@ SERVERCAPFLAG_SYNCWEAPONINPUT
Definition
protocol_ex.h:38
SERVERCAPFLAG_DDNET
@ SERVERCAPFLAG_DDNET
Definition
protocol_ex.h:33
SERVERCAPFLAG_ALLOWDUMMY
@ SERVERCAPFLAG_ALLOWDUMMY
Definition
protocol_ex.h:37
UNPACKMESSAGE_OK
@ UNPACKMESSAGE_OK
Definition
protocol_ex.h:26
UNPACKMESSAGE_ANSWER
@ UNPACKMESSAGE_ANSWER
Definition
protocol_ex.h:27
UNPACKMESSAGE_ERROR
@ UNPACKMESSAGE_ERROR
Definition
protocol_ex.h:25
protocol_ex_msgs.h
CUuid
Definition
uuid_manager.h:17
uuid_manager.h
OFFSET_UUID
@ OFFSET_UUID
Definition
uuid_manager.h:13
UUID_INVALID
@ UUID_INVALID
Definition
uuid_manager.h:10
UUID_UNKNOWN
@ UUID_UNKNOWN
Definition
uuid_manager.h:11
src
engine
shared
protocol_ex.h
Generated by
1.18.0