parse diva adventure dispatch

This commit is contained in:
wishu
2022-07-10 00:48:14 +10:00
parent 065b0e4979
commit d0ef594b81

View File

@@ -11,9 +11,8 @@ import (
// MsgSysReserve205 represents the MSG_SYS_reserve205
type MsgSysReserve205 struct {
AckHandle uint32
Unk0 uint32
Unk1 uint32
Unk2 uint32
Destination uint32
Charge uint32
}
// Opcode returns the ID associated with this packet type.
@@ -24,9 +23,9 @@ func (m *MsgSysReserve205) Opcode() network.PacketID {
// Parse parses the packet from binary
func (m *MsgSysReserve205) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32()
m.Unk0 = bf.ReadUint32()
m.Unk1 = bf.ReadUint32()
m.Unk2 = bf.ReadUint32()
m.Destination = bf.ReadUint32()
m.Charge = bf.ReadUint32()
_ = bf.ReadUint32() // CharID
return nil
}