From d6b8ac96d8191de7a987c7e506c1769a954c5da2 Mon Sep 17 00:00:00 2001 From: wish Date: Sun, 16 Jul 2023 13:01:15 +1000 Subject: [PATCH] rename Campaign packet variables --- network/mhfpacket/msg_mhf_enumerate_item.go | 10 +++++----- network/mhfpacket/msg_mhf_state_campaign.go | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/network/mhfpacket/msg_mhf_enumerate_item.go b/network/mhfpacket/msg_mhf_enumerate_item.go index ae70deae7..fea4f3371 100644 --- a/network/mhfpacket/msg_mhf_enumerate_item.go +++ b/network/mhfpacket/msg_mhf_enumerate_item.go @@ -10,10 +10,10 @@ import ( // MsgMhfEnumerateItem represents the MSG_MHF_ENUMERATE_ITEM type MsgMhfEnumerateItem struct { - AckHandle uint32 - Unk0 uint16 - Unk1 uint16 - Unk2 uint32 + AckHandle uint32 + Unk0 uint16 + Unk1 uint16 + CampaignID uint32 } // Opcode returns the ID associated with this packet type. @@ -26,7 +26,7 @@ func (m *MsgMhfEnumerateItem) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clie m.AckHandle = bf.ReadUint32() m.Unk0 = bf.ReadUint16() m.Unk1 = bf.ReadUint16() - m.Unk2 = bf.ReadUint32() + m.CampaignID = bf.ReadUint32() return nil } diff --git a/network/mhfpacket/msg_mhf_state_campaign.go b/network/mhfpacket/msg_mhf_state_campaign.go index 40a2cc341..ab6342c55 100644 --- a/network/mhfpacket/msg_mhf_state_campaign.go +++ b/network/mhfpacket/msg_mhf_state_campaign.go @@ -10,9 +10,9 @@ import ( // MsgMhfStateCampaign represents the MSG_MHF_STATE_CAMPAIGN type MsgMhfStateCampaign struct { - AckHandle uint32 - Unk0 uint32 - Unk1 uint16 + AckHandle uint32 + CampaignID uint32 + Unk1 uint16 } // Opcode returns the ID associated with this packet type. @@ -23,7 +23,7 @@ func (m *MsgMhfStateCampaign) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgMhfStateCampaign) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { m.AckHandle = bf.ReadUint32() - m.Unk0 = bf.ReadUint32() + m.CampaignID = bf.ReadUint32() m.Unk1 = bf.ReadUint16() return nil }