mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-18 09:54:46 +01:00
Base for present type
This commit is contained in:
@@ -11,15 +11,15 @@ import (
|
||||
|
||||
// MsgMhfPresentBox represents the MSG_MHF_PRESENT_BOX
|
||||
type MsgMhfPresentBox struct {
|
||||
AckHandle uint32
|
||||
Unk0 uint32
|
||||
Unk1 uint32
|
||||
Unk2 uint32
|
||||
Unk3 uint32
|
||||
Unk4 uint32
|
||||
Unk5 uint32
|
||||
Unk6 uint32
|
||||
Unk7 []uint32
|
||||
AckHandle uint32
|
||||
Unk0 uint32
|
||||
Operation uint32
|
||||
PresentCount uint32
|
||||
Unk3 uint32
|
||||
Unk4 uint32
|
||||
Unk5 uint32
|
||||
Unk6 uint32
|
||||
PresentType []uint32
|
||||
}
|
||||
|
||||
// Opcode returns the ID associated with this packet type.
|
||||
@@ -31,18 +31,18 @@ func (m *MsgMhfPresentBox) Opcode() network.PacketID {
|
||||
func (m *MsgMhfPresentBox) 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.Operation = bf.ReadUint32()
|
||||
m.PresentCount = bf.ReadUint32()
|
||||
m.Unk3 = bf.ReadUint32()
|
||||
m.Unk4 = bf.ReadUint32()
|
||||
m.Unk5 = bf.ReadUint32()
|
||||
m.Unk6 = bf.ReadUint32()
|
||||
for i := uint32(0); i < m.Unk2; i++ {
|
||||
m.Unk7 = append(m.Unk7, bf.ReadUint32())
|
||||
for i := uint32(0); i < m.PresentCount; i++ {
|
||||
m.PresentType = append(m.PresentType, bf.ReadUint32())
|
||||
}
|
||||
fmt.Printf("MsgMhfPresentBox: Unk0:[%d] Unk1:[%d] Unk2:[%d] Unk3:[%d] Unk4:[%d] Unk5:[%d] Unk6:[%d] \n\n", m.Unk0, m.Unk1, m.Unk2, m.Unk3, m.Unk4, m.Unk5, m.Unk6)
|
||||
for _, mdata := range m.Unk7 {
|
||||
fmt.Printf("MsgMhfPresentBox: Unk7: [%d] \n", mdata)
|
||||
fmt.Printf("MsgMhfPresentBox: Unk0:[%d] Unk1:[%d] Unk2:[%d] Unk3:[%d] Unk4:[%d] Unk5:[%d] Unk6:[%d] \n\n", m.Unk0, m.Operation, m.PresentCount, m.Unk3, m.Unk4, m.Unk5, m.Unk6)
|
||||
for _, mdata := range m.PresentType {
|
||||
fmt.Printf("MsgMhfPresentBox: PresentType: [%d] \n", mdata)
|
||||
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user