Files
Erupe/network/mhfpacket/msg_mhf_release_event.go
2023-11-19 00:35:22 +11:00

34 lines
840 B
Go

package mhfpacket
import (
"errors"
"erupe-ce/common/byteframe"
"erupe-ce/network"
"erupe-ce/network/clientctx"
)
// MsgMhfReleaseEvent represents the MSG_MHF_RELEASE_EVENT
type MsgMhfReleaseEvent struct {
AckHandle uint32
RaviID uint32
}
// Opcode returns the ID associated with this packet type.
func (m *MsgMhfReleaseEvent) Opcode() network.PacketID {
return network.MSG_MHF_RELEASE_EVENT
}
// Parse parses the packet from binary
func (m *MsgMhfReleaseEvent) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32()
m.RaviID = bf.ReadUint32()
bf.ReadUint32() // Zeroed
return nil
}
// Build builds a binary packet from the current data.
func (m *MsgMhfReleaseEvent) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
return errors.New("NOT IMPLEMENTED")
}