fix PostTinyBin parsing

This commit is contained in:
wish
2023-03-11 00:01:59 +11:00
parent 7704481e78
commit d92270a249

View File

@@ -11,7 +11,10 @@ import (
// MsgMhfPostTinyBin represents the MSG_MHF_POST_TINY_BIN
type MsgMhfPostTinyBin struct {
AckHandle uint32
Unk []byte
Unk0 uint16
Unk1 uint8
Unk2 uint8
Data []byte
}
// Opcode returns the ID associated with this packet type.
@@ -22,7 +25,10 @@ func (m *MsgMhfPostTinyBin) Opcode() network.PacketID {
// Parse parses the packet from binary
func (m *MsgMhfPostTinyBin) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32()
m.Unk = bf.ReadBytes(14)
m.Unk0 = bf.ReadUint16()
m.Unk1 = bf.ReadUint8()
m.Unk2 = bf.ReadUint8()
m.Data = bf.ReadBytes(uint(bf.ReadUint16()))
return nil
}