Files
Erupe/network/mhfpacket/mhfpacket.go
stratic-dev 62fe5cf277 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
2024-10-09 18:36:34 +01:00

29 lines
571 B
Go

package mhfpacket
import (
"erupe-ce/network"
"erupe-ce/utils/byteframe"
)
// Parser is the interface that wraps the Parse method.
type Parser interface {
Parse(bf *byteframe.ByteFrame) error
}
// Builder is the interface that wraps the Build method.
type Builder interface {
Build(bf *byteframe.ByteFrame) error
}
// Opcoder is the interface that wraps the Opcode method.
type Opcoder interface {
Opcode() network.PacketID
}
// MHFPacket is the interface that groups the Parse, Build, and Opcode methods.
type MHFPacket interface {
Parser
Builder
Opcoder
}