From d560f77811d4fc6f29bf477356a6d2e58dda0be1 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 30 Nov 2024 12:46:08 +0100 Subject: next commit --- packets/quest_list_packet.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packets/quest_list_packet.gd') diff --git a/packets/quest_list_packet.gd b/packets/quest_list_packet.gd index bf78f08..fb148c3 100644 --- a/packets/quest_list_packet.gd +++ b/packets/quest_list_packet.gd @@ -14,7 +14,7 @@ var packet_length: int ## Byte Length: 4 var quest_count: int -var quests: Array +var quests: Array[Quest] static func from_bytes(bytes: PackedByteArray): @@ -22,5 +22,6 @@ static func from_bytes(bytes: PackedByteArray): packet.packet_length = bytes.decode_u16(2) packet.quest_count = bytes.decode_u32(4) + packet.quests = Quest.array_from_bytes(bytes.slice(8)) return packet -- cgit v1.2.3