diff options
Diffstat (limited to 'packets/quest_list_packet.gd')
-rw-r--r-- | packets/quest_list_packet.gd | 3 |
1 files changed, 2 insertions, 1 deletions
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 |