fix EnumerateOrder & TournamentEvent struct

This commit is contained in:
wish
2024-06-25 21:49:41 +10:00
parent 4c485ef55a
commit 79dce0bc52
2 changed files with 14 additions and 12 deletions

View File

@@ -10,9 +10,9 @@ import (
// MsgMhfEnumerateOrder represents the MSG_MHF_ENUMERATE_ORDER
type MsgMhfEnumerateOrder struct {
AckHandle uint32
CupID uint32
TournamentID uint32
AckHandle uint32
EventID uint32
ClanID uint32
}
// Opcode returns the ID associated with this packet type.
@@ -23,8 +23,8 @@ func (m *MsgMhfEnumerateOrder) Opcode() network.PacketID {
// Parse parses the packet from binary
func (m *MsgMhfEnumerateOrder) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32()
m.CupID = bf.ReadUint32()
m.TournamentID = bf.ReadUint32()
m.EventID = bf.ReadUint32()
m.ClanID = bf.ReadUint32()
return nil
}