Prepare to send reason for leaving a game. New protocol version as it is not compatible to the current beta.
This commit is contained in:
@@ -447,10 +447,17 @@ Server Notification: Player Left
|
|||||||
0 1 2 3
|
0 1 2 3
|
||||||
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
||||||
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||||
| Message Type = 53 | Message Length = 8 |
|
| Message Type = 53 | Message Length = 12 |
|
||||||
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||||
| Player ID |
|
| Player ID |
|
||||||
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||||
|
| Leave Reason | Reserved |
|
||||||
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||||
|
|
||||||
|
Leave Reason:
|
||||||
|
0x0000 - On Request
|
||||||
|
0x0001 - Kicked from the game
|
||||||
|
0xFFFF - Other reason
|
||||||
|
|
||||||
|
|
||||||
Server Notification: Game Admin Changed
|
Server Notification: Game Admin Changed
|
||||||
|
|||||||
@@ -309,6 +309,8 @@ struct GCC_PACKED NetPacketPlayerLeftData
|
|||||||
{
|
{
|
||||||
NetPacketHeader head;
|
NetPacketHeader head;
|
||||||
u_int32_t playerId;
|
u_int32_t playerId;
|
||||||
|
u_int16_t leaveReason;
|
||||||
|
u_int16_t reserved;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct GCC_PACKED NetPacketGameAdminChangedData
|
struct GCC_PACKED NetPacketGameAdminChangedData
|
||||||
|
|||||||
+1
-1
@@ -30,7 +30,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <list>
|
#include <list>
|
||||||
|
|
||||||
#define NET_VERSION_MAJOR 2
|
#define NET_VERSION_MAJOR 3
|
||||||
#define NET_VERSION_MINOR 0
|
#define NET_VERSION_MINOR 0
|
||||||
|
|
||||||
#define MIN_PACKET_SIZE 4
|
#define MIN_PACKET_SIZE 4
|
||||||
|
|||||||
Reference in New Issue
Block a user