2017-05-21 23:07:13 +00:00
|
|
|
#ifndef ENGINE_SHARED_PROTOCOL_EX_H
|
|
|
|
#define ENGINE_SHARED_PROTOCOL_EX_H
|
|
|
|
|
|
|
|
#include <engine/message.h>
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
2020-09-26 19:41:58 +00:00
|
|
|
NETMSG_EX_INVALID = UUID_INVALID,
|
|
|
|
NETMSG_EX_UNKNOWN = UUID_UNKNOWN,
|
2017-05-21 23:07:13 +00:00
|
|
|
|
2020-09-26 19:41:58 +00:00
|
|
|
OFFSET_NETMSG_UUID = OFFSET_UUID,
|
2017-05-21 23:07:13 +00:00
|
|
|
|
2020-09-26 19:41:58 +00:00
|
|
|
__NETMSG_UUID_HELPER = OFFSET_NETMSG_UUID - 1,
|
|
|
|
#define UUID(id, name) id,
|
|
|
|
#include "protocol_ex_msgs.h"
|
|
|
|
#undef UUID
|
2018-01-11 15:01:13 +00:00
|
|
|
OFFSET_TEEHISTORIAN_UUID,
|
2017-05-21 23:07:13 +00:00
|
|
|
|
2020-09-26 19:41:58 +00:00
|
|
|
UNPACKMESSAGE_ERROR = 0,
|
2017-05-21 23:07:13 +00:00
|
|
|
UNPACKMESSAGE_OK,
|
|
|
|
UNPACKMESSAGE_ANSWER,
|
2019-06-03 19:52:14 +00:00
|
|
|
|
2022-01-09 13:14:45 +00:00
|
|
|
SERVERCAP_CURVERSION = 5,
|
2020-09-26 19:41:58 +00:00
|
|
|
SERVERCAPFLAG_DDNET = 1 << 0,
|
|
|
|
SERVERCAPFLAG_CHATTIMEOUTCODE = 1 << 1,
|
2021-01-10 16:23:00 +00:00
|
|
|
SERVERCAPFLAG_ANYPLAYERFLAG = 1 << 2,
|
2021-04-23 21:29:01 +00:00
|
|
|
SERVERCAPFLAG_PINGEX = 1 << 3,
|
2021-11-17 19:35:39 +00:00
|
|
|
SERVERCAPFLAG_ALLOWDUMMY = 1 << 4,
|
2022-01-09 13:14:45 +00:00
|
|
|
SERVERCAPFLAG_SYNCWEAPONINPUT = 1 << 5,
|
2017-05-21 23:07:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void RegisterUuids(class CUuidManager *pManager);
|
|
|
|
bool NetworkExDefaultHandler(int *pID, struct CUuid *pUuid, CUnpacker *pUnpacker, CMsgPacker *pPacker, int Type);
|
|
|
|
|
|
|
|
int UnpackMessageID(int *pID, bool *pSys, struct CUuid *pUuid, CUnpacker *pUnpacker, CMsgPacker *pPacker);
|
|
|
|
|
|
|
|
#endif // ENGINE_SHARED_PROTOCOL_EX_H
|