Update parsers

This commit is contained in:
Andrew Gutekanst
2019-12-27 04:41:05 +09:00
parent d4dddf01dd
commit 6a23130772
6 changed files with 21 additions and 13 deletions

View File

@@ -6,7 +6,9 @@ import (
)
// MsgMhfReadGuildcard represents the MSG_MHF_READ_GUILDCARD
type MsgMhfReadGuildcard struct{}
type MsgMhfReadGuildcard struct {
AckHandle uint32
}
// Opcode returns the ID associated with this packet type.
func (m *MsgMhfReadGuildcard) Opcode() network.PacketID {
@@ -15,10 +17,11 @@ func (m *MsgMhfReadGuildcard) Opcode() network.PacketID {
// Parse parses the packet from binary
func (m *MsgMhfReadGuildcard) Parse(bf *byteframe.ByteFrame) error {
panic("Not implemented")
m.AckHandle = bf.ReadUint32()
return nil
}
// Build builds a binary packet from the current data.
func (m *MsgMhfReadGuildcard) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}