further decode merc packets

This commit is contained in:
wish
2023-01-29 14:40:27 +11:00
parent 1382e99fc6
commit c37755f7c3
2 changed files with 33 additions and 15 deletions

View File

@@ -13,7 +13,7 @@ type MsgMhfContractMercenary struct {
AckHandle uint32
PactMercID uint32
CID uint32
Cancel bool
Op uint8
}
// Opcode returns the ID associated with this packet type.
@@ -26,7 +26,7 @@ func (m *MsgMhfContractMercenary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.
m.AckHandle = bf.ReadUint32()
m.PactMercID = bf.ReadUint32()
m.CID = bf.ReadUint32()
m.Cancel = bf.ReadBool()
m.Op = bf.ReadUint8()
return nil
}