Files
Erupe/network/mhfpacket/mhfpacket.go
2019-12-27 02:45:00 +09:00

29 lines
597 B
Go

package mhfpacket
import (
"github.com/Andoryuuta/Erupe/network"
"github.com/Andoryuuta/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
}