Creates a new instance of the TankPacket class.
Optional
data: TankThe tankpacket header and data.
Static
fromCreates a new instance of the TankPacket class.
TankPacket header and data.
Static
fromConverts a buffer to a tank packet.
The buffer to convert.
Represent a TankPacket.