mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-18 09:54:46 +01:00
Implement stage object deletion
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user