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