diff --git a/network/mhfpacket/msg_mhf_save_favorite_quest.go b/network/mhfpacket/msg_mhf_save_favorite_quest.go index 92abf544f..8ed9b8db0 100644 --- a/network/mhfpacket/msg_mhf_save_favorite_quest.go +++ b/network/mhfpacket/msg_mhf_save_favorite_quest.go @@ -6,7 +6,11 @@ import ( ) // MsgMhfSaveFavoriteQuest represents the MSG_MHF_SAVE_FAVORITE_QUEST -type MsgMhfSaveFavoriteQuest struct{} +type MsgMhfSaveFavoriteQuest struct { + AckHandle uint32 + DataSize uint16 + Data []byte +} // Opcode returns the ID associated with this packet type. func (m *MsgMhfSaveFavoriteQuest) Opcode() network.PacketID { @@ -15,10 +19,12 @@ func (m *MsgMhfSaveFavoriteQuest) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfSaveFavoriteQuest) Parse(bf *byteframe.ByteFrame) error { - panic("Not implemented") + m.AckHandle = bf.ReadUint32() + m.DataSize = bf.ReadUint16() + m.Data = bf.ReadBytes(m.DataSize) } // Build builds a binary packet from the current data. func (m *MsgMhfSaveFavoriteQuest) Build(bf *byteframe.ByteFrame) error { panic("Not implemented") -} \ No newline at end of file +}