public enum Packet
{
/// <summary>
/// Empty packet. Can be used to keep the connection alive.
/// </summary>
Empty,
/// <summary>
/// This packet indicates that an error has occurred.
/// string: Description of the error.
/// </summary>
Error,
.....
RequestActivateUDP,
/// <summary>
/// Sync the specified player's 'data' property. This packet will be echoed to everyone except the sender.
/// int32: Player ID who's data should be synchronized.
/// object: Player's data.
/// </summary>
SyncPlayerData,
YourCustomPacket = 200,
YourSecondCustomPacket,
YourThirdCustomPacket,
}