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[]
22 {
23 (byte)BadConsolePacketType.Disconnect,
24 };
25 }
26
32 public new static BadConsoleDisconnectPacket Deserialize(byte[] data)
33 {
34 if (data.Length != 1)
35 {
36 throw new BadNetworkConsoleException("Invalid Disconnect Packet");
37 }
38
39 return Packet;
40 }
41}
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.