From e8aa9f50886b66d525307a58d71036e6fd3d4aa1 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 28 Nov 2024 18:38:42 +0100 Subject: next commit --- packets/select_character_packet.gd | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 packets/select_character_packet.gd (limited to 'packets/select_character_packet.gd') 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 -- cgit v1.2.3