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