class_name SelectCharacterPacket extends Packet const HEADER := 0x0066 const BYTE_LENGTH := 3 ## Byte Type: u8 ## Byte Length: 1 var selected_slot: int func to_bytes(): var payload = PackedByteArray([]) payload.resize(1) payload.encode_u8(0, selected_slot) return get_header() + payload