From f4e07d090cded56ebab54363f1b47f1ea45c8682 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 20 Dec 2024 11:42:22 +0100 Subject: next commit --- packets/login_failed_packet.gd | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packets/login_failed_packet.gd (limited to 'packets/login_failed_packet.gd') diff --git a/packets/login_failed_packet.gd b/packets/login_failed_packet.gd new file mode 100644 index 0000000..93ebf23 --- /dev/null +++ b/packets/login_failed_packet.gd @@ -0,0 +1,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 -- cgit v1.2.3