summaryrefslogtreecommitdiff
path: root/packets/select_character_packet.gd
blob: 18843ccbbaf699ae01caf3cfa0ad9514569837e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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