client

package
v0.0.0-...-18e7427 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerClient

type ServerClient struct {
	// contains filtered or unexported fields
}

ServerClient represents a client connected to the server.

func NewServerClient

func NewServerClient(log *zap.Logger, conn *net.Conn, player *world.Player) *ServerClient

func (*ServerClient) SendDisconnect

func (c *ServerClient) SendDisconnect(reason chat.Message)

func (*ServerClient) SendKeepAlive

func (c *ServerClient) SendKeepAlive(id int64)

func (*ServerClient) SendLogin

func (c *ServerClient) SendLogin(w *world.World)

func (*ServerClient) SendPacket

func (c *ServerClient) SendPacket(packet pk.Packet)

func (*ServerClient) SendServerData

func (c *ServerClient) SendServerData(motd *chat.Message, favIcon string, enforceSecureProfile bool)

func (*ServerClient) Start

func (c *ServerClient) Start()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL