summaryrefslogtreecommitdiff
path: root/packets/client/character_server/select_character_packet.gd
blob: 56ba1fa14cc77e88b2107e58d95ba6d57b86f23e (plain)
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