1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
class_name NewMailStatusPacket extends Packet const HEADER := 0x09e7 const BYTE_LENGTH := 3 ## Byte Type: u8 ## Byte Length: 1 var new_available: int static func from_bytes(bytes: PackedByteArray): var packet = NewMailStatusPacket.new() packet.new_available = bytes.decode_u8(2) return packet