From a14e88ff4d0d87841a44254e2bff1784da6e8b48 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 15 Dec 2024 14:23:25 +0100 Subject: next commit --- packets/login_server_login_success_packet.gd | 59 ---------------------------- 1 file changed, 59 deletions(-) delete mode 100644 packets/login_server_login_success_packet.gd (limited to 'packets/login_server_login_success_packet.gd') diff --git a/packets/login_server_login_success_packet.gd b/packets/login_server_login_success_packet.gd deleted file mode 100644 index ce6a058..0000000 --- a/packets/login_server_login_success_packet.gd +++ /dev/null @@ -1,59 +0,0 @@ -class_name LoginServerLoginSuccessPacket -extends Packet - - -const HEADER := 0x0ac4 -const BYTE_LENGTH := 0 - - -## Byte Type: u16 -## Byte Length: 2 -var packet_length: int - -## Byte Type: u32 -## Byte Length: 4 -var login_id1: int - -## Byte Type: u32 -## Byte Length: 4 -var account_id: int - -## Byte Type: u32 -## Byte Length: 4 -var login_id2: int - -## Deprecated and always 0 on rAthena -## Byte Type: u32 -## Byte Length: 4 -var ip_address: PackedByteArray - -## Deprecated and always 0 on rAthena -## Byte Type: u8 -## Byte Length: 26 -var last_login: PackedByteArray - -## Byte Type: u8 -## Byte Length: 1 -var gender: Constants.Gender - -## Byte Type: u8 -## Byte Length: 17 -var auth_token: String - -var character_server_information: Array[CharacterServerInformation] - - -static func from_bytes(bytes: PackedByteArray): - var packet = LoginServerLoginSuccessPacket.new() - - packet.packet_length = bytes.decode_u16(2) - packet.login_id1 = bytes.decode_u32(4) - packet.account_id = bytes.decode_u32(8) - packet.login_id2 = bytes.decode_u32(12) - packet.ip_address = bytes.slice(16, 20) - packet.last_login = bytes.slice(20, 20 + 26) - packet.gender = bytes[46] - packet.auth_token = bytes.slice(47, 47 + 17).get_string_from_utf8() - packet.character_server_information = CharacterServerInformation.array_from_bytes(bytes.slice(64)) - - return packet -- cgit v1.2.3