revert UpdateGuacot parsing

This commit is contained in:
wish
2023-12-04 22:29:58 +11:00
parent 7717f2f12a
commit ef7d46ba2e
2 changed files with 15 additions and 4 deletions

View File

@@ -9,7 +9,8 @@ import (
type Goocoo struct {
Index uint32
Data []byte
Data1 []int16
Data2 []uint32
Name []byte
}
@@ -33,7 +34,12 @@ func (m *MsgMhfUpdateGuacot) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien
var temp Goocoo
for i := 0; i < int(m.EntryCount); i++ {
temp.Index = bf.ReadUint32()
temp.Data = bf.ReadBytes(52)
for j := 0; j < 22; j++ {
temp.Data1 = append(temp.Data1, bf.ReadInt16())
}
for j := 0; j < 2; j++ {
temp.Data2 = append(temp.Data2, bf.ReadUint32())
}
temp.Name = bf.ReadBytes(uint(bf.ReadUint8()))
m.Goocoos = append(m.Goocoos, temp)
}