BadScript 2
Loading...
Searching...
No Matches
BadConsoleClearPacket.cs
Go to the documentation of this file.
1
4
6
11{
15 public static readonly BadConsoleClearPacket Packet = new BadConsoleClearPacket();
16
21
27 public new static BadConsoleClearPacket Deserialize(byte[] data)
28 {
29 if (data.Length != 1)
30 {
31 throw new BadNetworkConsoleException("Invalid Clear Packet");
32 }
33
34 return Packet;
35 }
36
38 public override byte[] Serialize()
39 {
40 return new[]
41 {
42 (byte)BadConsolePacketType.Clear,
43 };
44 }
45}
Exception that is thrown when the remote console encounters an error.
static new BadConsoleClearPacket Deserialize(byte[] data)
Deserializes the Packet.
static readonly BadConsoleClearPacket Packet
Static Instance of this Packet.
Contains the network packets for the remote console.