mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-14 16:04:38 +01:00
moved crypto bin8 out of entrance server removed unused clientctx missed import fix accidental commit and rename ack_helpers
50 lines
1.1 KiB
Go
50 lines
1.1 KiB
Go
package mhfpacket
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"erupe-ce/network"
|
|
"erupe-ce/utils/byteframe"
|
|
)
|
|
|
|
// MsgMhfPostTowerInfo represents the MSG_MHF_POST_TOWER_INFO
|
|
type MsgMhfPostTowerInfo struct {
|
|
AckHandle uint32
|
|
InfoType uint32
|
|
Unk1 uint32
|
|
Skill int32
|
|
TR int32
|
|
TRP int32
|
|
Cost int32
|
|
Unk6 int32
|
|
Unk7 int32
|
|
Block1 int32
|
|
Unk9 int64
|
|
}
|
|
|
|
// Opcode returns the ID associated with this packet type.
|
|
func (m *MsgMhfPostTowerInfo) Opcode() network.PacketID {
|
|
return network.MSG_MHF_POST_TOWER_INFO
|
|
}
|
|
|
|
// Parse parses the packet from binary
|
|
func (m *MsgMhfPostTowerInfo) Parse(bf *byteframe.ByteFrame) error {
|
|
m.AckHandle = bf.ReadUint32()
|
|
m.InfoType = bf.ReadUint32()
|
|
m.Unk1 = bf.ReadUint32()
|
|
m.Skill = bf.ReadInt32()
|
|
m.TR = bf.ReadInt32()
|
|
m.TRP = bf.ReadInt32()
|
|
m.Cost = bf.ReadInt32()
|
|
m.Unk6 = bf.ReadInt32()
|
|
m.Unk7 = bf.ReadInt32()
|
|
m.Block1 = bf.ReadInt32()
|
|
m.Unk9 = bf.ReadInt64()
|
|
return nil
|
|
}
|
|
|
|
// Build builds a binary packet from the current data.
|
|
func (m *MsgMhfPostTowerInfo) Build(bf *byteframe.ByteFrame) error {
|
|
return errors.New("NOT IMPLEMENTED")
|
|
}
|