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:
stratic-dev
2024-10-09 09:15:29 +01:00
parent 701d88166f
commit 62fe5cf277
447 changed files with 949 additions and 1385 deletions

View File

@@ -2,7 +2,6 @@ package mhfpacket
import (
"erupe-ce/network"
"erupe-ce/network/clientctx"
"erupe-ce/utils/byteframe"
)
@@ -20,7 +19,7 @@ func (m *MsgSysDuplicateObject) Opcode() network.PacketID {
}
// Parse parses the packet from binary
func (m *MsgSysDuplicateObject) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
func (m *MsgSysDuplicateObject) Parse(bf *byteframe.ByteFrame) error {
m.ObjID = bf.ReadUint32()
m.X = bf.ReadFloat32()
m.Y = bf.ReadFloat32()
@@ -31,7 +30,7 @@ func (m *MsgSysDuplicateObject) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cl
}
// Build builds a binary packet from the current data.
func (m *MsgSysDuplicateObject) Build(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
func (m *MsgSysDuplicateObject) Build(bf *byteframe.ByteFrame) error {
bf.WriteUint32(m.ObjID)
bf.WriteFloat32(m.X)
bf.WriteFloat32(m.Y)