mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-15 00:15:08 +01:00
29 lines
713 B
Go
29 lines
713 B
Go
package mhfpacket
|
|
|
|
import (
|
|
"github.com/Andoryuuta/Erupe/network"
|
|
"github.com/Andoryuuta/byteframe"
|
|
)
|
|
|
|
// MsgMhfAddAchievement represents the MSG_MHF_ADD_ACHIEVEMENT
|
|
type MsgMhfAddAchievement struct {
|
|
Unk0 []byte
|
|
}
|
|
|
|
// Opcode returns the ID associated with this packet type.
|
|
func (m *MsgMhfAddAchievement) Opcode() network.PacketID {
|
|
return network.MSG_MHF_ADD_ACHIEVEMENT
|
|
}
|
|
|
|
// Parse parses the packet from binary
|
|
func (m *MsgMhfAddAchievement) Parse(bf *byteframe.ByteFrame) error {
|
|
m.Unk0 = bf.ReadBytes(5)
|
|
// doesn't expect a response
|
|
return nil
|
|
}
|
|
|
|
// Build builds a binary packet from the current data.
|
|
func (m *MsgMhfAddAchievement) Build(bf *byteframe.ByteFrame) error {
|
|
panic("Not implemented")
|
|
}
|