summaryrefslogtreecommitdiff
path: root/packets/login_failed_packet.gd
blob: 93ebf234fa7c4681b7e1b7de28e1b38268e05126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
## rAthena References:
## - clif_authfail_fd
class_name LoginFailedPacket
extends Packet


const HEADER := 0x0081
const BYTE_LENGTH := 3


## Byte Type: u8
## Byte Length: 1
@warning_ignore("enum_variable_without_default")
var reason: Constants.LoginFailedReason


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