mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-13 23:44:52 +01:00
26 lines
526 B
Go
26 lines
526 B
Go
package binpacket
|
|
|
|
import (
|
|
"erupe-ce/common/byteframe"
|
|
"erupe-ce/common/stringsupport"
|
|
"erupe-ce/network"
|
|
)
|
|
|
|
type MsgBinMailNotify struct {
|
|
SenderName string
|
|
}
|
|
|
|
func (m MsgBinMailNotify) Parse(bf *byteframe.ByteFrame) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (m MsgBinMailNotify) Build(bf *byteframe.ByteFrame) error {
|
|
bf.WriteUint8(0x01) // Unk
|
|
bf.WriteBytes(stringsupport.PaddedString(m.SenderName, 21, true))
|
|
return nil
|
|
}
|
|
|
|
func (m MsgBinMailNotify) Opcode() network.PacketID {
|
|
return network.MSG_SYS_CASTED_BINARY
|
|
}
|