mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-16 08:55:31 +01:00
moved bin 8 out and removed clientctx
moved crypto bin8 out of entrance server removed unused clientctx missed import fix accidental commit and rename ack_helpers
This commit is contained in:
@@ -2,7 +2,6 @@ package mhfpacket
|
||||
|
||||
import (
|
||||
"erupe-ce/network"
|
||||
"erupe-ce/network/clientctx"
|
||||
"erupe-ce/utils/byteframe"
|
||||
)
|
||||
|
||||
@@ -20,7 +19,7 @@ func (m *MsgSysCastedBinary) Opcode() network.PacketID {
|
||||
}
|
||||
|
||||
// Parse parses the packet from binary
|
||||
func (m *MsgSysCastedBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
|
||||
func (m *MsgSysCastedBinary) Parse(bf *byteframe.ByteFrame) error {
|
||||
m.CharID = bf.ReadUint32()
|
||||
m.BroadcastType = bf.ReadUint8()
|
||||
m.MessageType = bf.ReadUint8()
|
||||
@@ -30,7 +29,7 @@ func (m *MsgSysCastedBinary) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Clien
|
||||
}
|
||||
|
||||
// Build builds a binary packet from the current data.
|
||||
func (m *MsgSysCastedBinary) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
|
||||
func (m *MsgSysCastedBinary) Build(bf *byteframe.ByteFrame) error {
|
||||
bf.WriteUint32(m.CharID)
|
||||
bf.WriteUint8(m.BroadcastType)
|
||||
bf.WriteUint8(m.MessageType)
|
||||
|
||||
Reference in New Issue
Block a user