1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
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