Armour, Deco and Sigil Preset Saving

This commit is contained in:
SirFist
2020-03-01 05:18:34 +00:00
parent 861e53cb7a
commit 8607ff05f9
3 changed files with 80 additions and 17 deletions

View File

@@ -6,7 +6,11 @@ import (
)
// MsgMhfSavePlateMyset represents the MSG_MHF_SAVE_PLATE_MYSET
type MsgMhfSavePlateMyset struct{}
type MsgMhfSavePlateMyset struct{
AckHandle uint32
DataSize uint32
RawDataPayload []byte
}
// Opcode returns the ID associated with this packet type.
func (m *MsgMhfSavePlateMyset) Opcode() network.PacketID {
@@ -15,10 +19,13 @@ func (m *MsgMhfSavePlateMyset) Opcode() network.PacketID {
// Parse parses the packet from binary
func (m *MsgMhfSavePlateMyset) Parse(bf *byteframe.ByteFrame) error {
panic("Not implemented")
m.AckHandle = bf.ReadUint32()
m.DataSize = bf.ReadUint32()
m.RawDataPayload = bf.ReadBytes(uint(m.DataSize))
return nil
}
// Build builds a binary packet from the current data.
func (m *MsgMhfSavePlateMyset) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
}