Combine MsgSysEnterStage with MsgSysMoveStage

This commit is contained in:
Andrew Gutekanst
2020-02-07 18:16:33 -05:00
parent 315449aa33
commit 99c965e3b6
3 changed files with 31 additions and 11 deletions

View File

@@ -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")
}
}