initial databasing

This commit is contained in:
straticspaff
2023-11-18 05:34:56 +00:00
parent 4a83b68725
commit 6604fa16c5
7 changed files with 174 additions and 84 deletions

View File

@@ -9,10 +9,10 @@ import (
// MsgMhfApplyCampaign represents the MSG_MHF_APPLY_CAMPAIGN
type MsgMhfApplyCampaign struct {
AckHandle uint32
Unk0 uint32
Unk1 uint16
Unk2 []byte
AckHandle uint32
CampaignID uint32
NullPadding uint16 // set as 0 in z2
CodeString []byte
}
// Opcode returns the ID associated with this packet type.
@@ -23,9 +23,9 @@ func (m *MsgMhfApplyCampaign) Opcode() network.PacketID {
// Parse parses the packet from binary
func (m *MsgMhfApplyCampaign) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32()
m.Unk0 = bf.ReadUint32()
m.Unk1 = bf.ReadUint16()
m.Unk2 = bf.ReadBytes(16)
m.CampaignID = bf.ReadUint32()
m.NullPadding = bf.ReadUint16()
m.CodeString = bf.ReadBytes(16)
return nil
}