diff options
Diffstat (limited to 'packets/select_character_packet.gd')
-rw-r--r-- | packets/select_character_packet.gd | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/packets/select_character_packet.gd b/packets/select_character_packet.gd new file mode 100644 index 0000000..18843cc --- /dev/null +++ b/packets/select_character_packet.gd @@ -0,0 +1,18 @@ +class_name SelectCharacterPacket +extends Packet + + +static var header := 0x0066 + + +## 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 |