summaryrefslogtreecommitdiff
path: root/packets/character_server_login_packet.gd
diff options
context:
space:
mode:
Diffstat (limited to 'packets/character_server_login_packet.gd')
-rw-r--r--packets/character_server_login_packet.gd12
1 files changed, 9 insertions, 3 deletions
diff --git a/packets/character_server_login_packet.gd b/packets/character_server_login_packet.gd
index e6ba07b..0e3116f 100644
--- a/packets/character_server_login_packet.gd
+++ b/packets/character_server_login_packet.gd
@@ -2,25 +2,31 @@ class_name CharacterServerLoginPacket
extends Packet
+static var header := 0x0065
+
+
+## Byte Type: u32
## Byte Length: 4
var account_id: int
+## Byte Type: u32
## Byte Length: 4
var login_id1: int
+## Byte Type: u32
## Byte Length: 4
var login_id2: int
+## Byte Type: u16
## Byte Length: 2
var unknown: int
+## Byte Type: u8
## Byte Length: 1
var gender: Constants.Gender
func to_bytes():
- var header = PackedByteArray([101, 0])
-
var payload = PackedByteArray([])
payload.resize(15)
payload.encode_u32(0, account_id)
@@ -29,4 +35,4 @@ func to_bytes():
payload.encode_u16(12, unknown)
payload.encode_u8(14, gender)
- return header + payload
+ return get_header() + payload