change getRaviSemaphore scope & handle RegisterEvent

This commit is contained in:
wish
2023-08-30 22:29:49 +10:00
parent 813a3df6a7
commit 42abdfb0c7
4 changed files with 9 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ import (
// MsgMhfReleaseEvent represents the MSG_MHF_RELEASE_EVENT
type MsgMhfReleaseEvent struct {
AckHandle uint32
Unk0 uint32
RaviID uint32
Unk1 uint32
}
@@ -23,7 +23,7 @@ func (m *MsgMhfReleaseEvent) Opcode() network.PacketID {
// Parse parses the packet from binary
func (m *MsgMhfReleaseEvent) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32()
m.Unk0 = bf.ReadUint32()
m.RaviID = bf.ReadUint32()
m.Unk1 = bf.ReadUint32()
return nil
}