summaryrefslogtreecommitdiff
path: root/packets/character_server/character_selection_failed_packet.gd
blob: 5f6cb8abf985ca2325853701d99cb88f49a869bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class_name CharacterSelectionFailedPacket
extends Packet


const HEADER := 0x006c
const BYTE_LENGTH := 3


## Byte Type: u8
## Byte Length: 1
var reason: int


static func from_bytes(bytes: PackedByteArray):
	var packet = CharacterSelectionFailedPacket.new()
	
	packet.reason = bytes.decode_u8(2)
	
	return packet