diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-11-30 12:46:08 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-11-30 12:46:08 +0100 |
commit | d560f77811d4fc6f29bf477356a6d2e58dda0be1 (patch) | |
tree | 3ac2c4267b5c88e40849416115977574e9f09a83 /packets/quest_list_packet.gd | |
parent | 313afffce7a823c30acf4853b083f9ca5132e879 (diff) |
next commit
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 |