diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-11-28 18:38:42 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-11-28 18:38:42 +0100 |
commit | e8aa9f50886b66d525307a58d71036e6fd3d4aa1 (patch) | |
tree | ce6f59eecf1eb3e1ba2794166c09623d8a2d7d83 /packets/map_server_login_packet.gd | |
parent | c89f25f59aa493d95bcac8e75ca5cdd57a0403e7 (diff) |
next commit
Diffstat (limited to 'packets/map_server_login_packet.gd')
-rw-r--r-- | packets/map_server_login_packet.gd | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/packets/map_server_login_packet.gd b/packets/map_server_login_packet.gd index 62af086..89d0108 100644 --- a/packets/map_server_login_packet.gd +++ b/packets/map_server_login_packet.gd @@ -2,28 +2,35 @@ class_name MapServerLoginPacket extends Packet +static var header := 0x0436 + + +## Byte Type: u32 ## Byte Length: 4 var account_id: int +## Byte Type: u32 ## Byte Length: 4 var character_id: int +## Byte Type: u32 ## Byte Length: 4 var login_id1: int +## Byte Type: u32 ## Byte Length: 4 var client_tick: int = 100 +## Byte Type: u8 ## Byte Length: 1 var gender: Constants.Gender +## Byte Type: u32 ## Byte Length: 4 var unknown: int = 0 func to_bytes(): - var header = PackedByteArray([54, 4]) - var payload = PackedByteArray([]) payload.resize(21) payload.encode_u32(0, account_id) @@ -33,4 +40,4 @@ func to_bytes(): payload.encode_u8(16, gender) payload.encode_u32(17, unknown) - return header + payload + return get_header() + payload |