Implement stage object deletion

This commit is contained in:
Andrew Gutekanst
2020-02-19 08:13:41 -05:00
parent e5f2650871
commit 8cea6235c8
2 changed files with 26 additions and 6 deletions

View File

@@ -6,7 +6,9 @@ import (
)
// MsgSysDeleteObject represents the MSG_SYS_DELETE_OBJECT
type MsgSysDeleteObject struct{}
type MsgSysDeleteObject struct {
ObjID uint32
}
// Opcode returns the ID associated with this packet type.
func (m *MsgSysDeleteObject) Opcode() network.PacketID {
@@ -15,10 +17,12 @@ func (m *MsgSysDeleteObject) Opcode() network.PacketID {
// Parse parses the packet from binary
func (m *MsgSysDeleteObject) Parse(bf *byteframe.ByteFrame) error {
panic("Not implemented")
m.ObjID = bf.ReadUint32()
return nil
}
// Build builds a binary packet from the current data.
func (m *MsgSysDeleteObject) Build(bf *byteframe.ByteFrame) error {
panic("Not implemented")
}
bf.WriteUint32(m.ObjID)
return nil
}