summaryrefslogtreecommitdiff
path: root/packets/login_server_keep_alive_packet.gd
blob: db0eedb310f14acd9fdb31110745ee5e6fa56025 (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:
## - CA_CONNECT_INFO_CHANGED ?
class_name LoginServerKeepAlivePacket
extends Packet


const HEADER := 0x0200
const BYTE_LENGTH := 26


## Byte Type: u8
## Byte Length: 24
var user_name: String


func to_bytes():
	var payload = PackedByteArray([])
	
	payload += user_name.to_utf8_buffer()
	payload.resize(BYTE_LENGTH - 2)
	
	return get_header() + payload