Add MSG_MHF_SAVE_FAVORITE_QUEST parser

This commit is contained in:
Andrew Gutekanst
2019-12-27 08:19:06 +09:00
parent f3a6e72f43
commit 5b9ec1c983

View File

@@ -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")
}
}