mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-15 00:15:08 +01:00
30 lines
752 B
Go
30 lines
752 B
Go
package mhfpacket
|
|
|
|
import (
|
|
"github.com/Andoryuuta/Erupe/network"
|
|
"github.com/Andoryuuta/byteframe"
|
|
)
|
|
|
|
// MsgSysNotifyUserBinary represents the MSG_SYS_NOTIFY_USER_BINARY
|
|
type MsgSysNotifyUserBinary struct {
|
|
CharID uint32
|
|
BinaryType uint8
|
|
}
|
|
|
|
// Opcode returns the ID associated with this packet type.
|
|
func (m *MsgSysNotifyUserBinary) Opcode() network.PacketID {
|
|
return network.MSG_SYS_NOTIFY_USER_BINARY
|
|
}
|
|
|
|
// Parse parses the packet from binary
|
|
func (m *MsgSysNotifyUserBinary) Parse(bf *byteframe.ByteFrame) error {
|
|
panic("Not implemented")
|
|
}
|
|
|
|
// Build builds a binary packet from the current data.
|
|
func (m *MsgSysNotifyUserBinary) Build(bf *byteframe.ByteFrame) error {
|
|
bf.WriteUint32(m.CharID)
|
|
bf.WriteUint8(m.BinaryType)
|
|
return nil
|
|
}
|