mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-23 12:24:45 +01:00
Combine MsgSysEnterStage with MsgSysMoveStage
This commit is contained in:
@@ -6,7 +6,12 @@ import (
|
||||
)
|
||||
|
||||
// MsgSysMoveStage represents the MSG_SYS_MOVE_STAGE
|
||||
type MsgSysMoveStage struct{}
|
||||
type MsgSysMoveStage struct {
|
||||
AckHandle uint32
|
||||
UnkBool uint8
|
||||
StageIDLength uint8
|
||||
StageID string
|
||||
}
|
||||
|
||||
// Opcode returns the ID associated with this packet type.
|
||||
func (m *MsgSysMoveStage) Opcode() network.PacketID {
|
||||
@@ -15,10 +20,14 @@ func (m *MsgSysMoveStage) Opcode() network.PacketID {
|
||||
|
||||
// Parse parses the packet from binary
|
||||
func (m *MsgSysMoveStage) Parse(bf *byteframe.ByteFrame) error {
|
||||
panic("Not implemented")
|
||||
m.AckHandle = bf.ReadUint32()
|
||||
m.UnkBool = bf.ReadUint8()
|
||||
m.StageIDLength = bf.ReadUint8()
|
||||
m.StageID = string(bf.ReadBytes(uint(m.StageIDLength)))
|
||||
return nil
|
||||
}
|
||||
|
||||
// Build builds a binary packet from the current data.
|
||||
func (m *MsgSysMoveStage) Build(bf *byteframe.ByteFrame) error {
|
||||
panic("Not implemented")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user