BadScript 2
Loading...
Searching...
No Matches
BadConsoleDisconnectPacket.cs
Go to the documentation of this file.
2
7{
12
17
19 public override byte[] Serialize()
20 {
21 return new[] { (byte)BadConsolePacketType.Disconnect };
22 }
23
29 public new static BadConsoleDisconnectPacket Deserialize(byte[] data)
30 {
31 if (data.Length != 1)
32 {
33 throw new BadNetworkConsoleException("Invalid Disconnect Packet");
34 }
35
36 return Packet;
37 }
38}
Exception that is thrown when the remote console encounters an error.
static readonly BadConsoleDisconnectPacket Packet
Static Instance of this Packet.
static new BadConsoleDisconnectPacket Deserialize(byte[] data)
Deserializes the Packet.
Contains the network packets for the remote console.