Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValueOfPacketState ¶
func ValueOfPacketState(s PacketState) int
Types ¶
type Compacter ¶
type Compacter struct { Values []int64 // contains filtered or unexported fields }
func NewCompacter ¶
type Connection ¶
type Connection interface { Address() net.Addr GetState() PacketState SetState(state PacketState) Encrypt(data []byte) (output []byte) Decrypt(data []byte) (output []byte) CertifyName() string CertifyData() []byte CertifyValues(name string) CertifyUpdate(secret []byte) Deflate(data []byte) (output []byte) Inflate(data []byte) (output []byte) Pull(data []byte) (len int, err error) Push(data []byte) (len int, err error) Stop() (err error) SendPacket(packet PacketO) }
type PacketI ¶
type PacketI interface { Packet // decode the server_data from the reader into this packet Pull(reader buff.Buffer, conn Connection) }
type PacketO ¶
type PacketO interface { Packet // encode the server_data from the packet into this writer Push(writer buff.Buffer, conn Connection) }
type PacketState ¶
type PacketState int
const ( SHAKE PacketState = iota STATUS LOGIN PLAY )
func PacketStateValueOf ¶
func PacketStateValueOf(s int) PacketState
func (PacketState) Next ¶
func (state PacketState) Next() PacketState
func (PacketState) String ¶
func (state PacketState) String() string
type Packets ¶
type Packets interface { util.Watcher GetPacketI(uuid int32, state PacketState) PacketI }
type PlayerAndConnection ¶
type PlayerAndConnection struct { Connection ents.Player }
Click to show internal directories.
Click to hide internal directories.