summaryrefslogtreecommitdiff
path: root/packets/map_server/friend_list_packet.gd
blob: ab419f5d7f91f054a7354f25a9815e42550457eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## rAthena References:
## - ZC_FRIENDS_LIST
class_name FriendListPacket
extends Packet


const HEADER := 0x0201
const BYTE_LENGTH := 0


## Byte Type: u16
## Byte Length: 2
var packet_length: int

var friends: Array[Friend]


static func from_bytes(bytes: PackedByteArray):
	var packet = FriendListPacket.new()
	
	packet.friends = Friend.array_from_bytes(bytes.slice(4))
	
	return packet