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
|
|
|
|
{
|
|
|
|
NETMSG_EX_INVALID=UUID_INVALID,
|
|
|
|
NETMSG_EX_UNKNOWN=UUID_UNKNOWN,
|
|
|
|
|
|
|
|
OFFSET_NETMSG_UUID=OFFSET_UUID,
|
|
|
|
|
|
|
|
__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
|
|
|
|
|
|
|
UNPACKMESSAGE_ERROR=0,
|
|
|
|
UNPACKMESSAGE_OK,
|
|
|
|
UNPACKMESSAGE_ANSWER,
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|