Update MsgSysCreateStage fields

This commit is contained in:
Andrew Gutekanst
2020-01-23 15:53:45 -05:00
parent ea13520ca9
commit 865ba378ec

View File

@@ -8,8 +8,8 @@ import (
// MsgSysCreateStage represents the MSG_SYS_CREATE_STAGE // MsgSysCreateStage represents the MSG_SYS_CREATE_STAGE
type MsgSysCreateStage struct { type MsgSysCreateStage struct {
AckHandle uint32 AckHandle uint32
Unk0 uint8 Unk0 uint8 // Likely only has 1 and 2 as values.
Unk1 uint8 PlayerCount uint8
StageIDLength uint8 StageIDLength uint8
StageID string // NULL terminated string. StageID string // NULL terminated string.
} }
@@ -23,7 +23,7 @@ func (m *MsgSysCreateStage) Opcode() network.PacketID {
func (m *MsgSysCreateStage) Parse(bf *byteframe.ByteFrame) error { func (m *MsgSysCreateStage) Parse(bf *byteframe.ByteFrame) error {
m.AckHandle = bf.ReadUint32() m.AckHandle = bf.ReadUint32()
m.Unk0 = bf.ReadUint8() m.Unk0 = bf.ReadUint8()
m.Unk1 = bf.ReadUint8() m.PlayerCount = bf.ReadUint8()
m.StageIDLength = bf.ReadUint8() m.StageIDLength = bf.ReadUint8()
m.StageID = string(bf.ReadBytes(uint(m.StageIDLength))) m.StageID = string(bf.ReadBytes(uint(m.StageIDLength)))
return nil return nil