mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-15 08:25:09 +01:00
Update MsgSysCreateStage fields
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user