channel

package
v0.0.0-...-617a946 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PopulateDropTable

func PopulateDropTable(dropJSON string) error

PopulateDropTable from json file

Types

type Server

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

Server state

func (*Server) ClientDisconnected

func (server *Server) ClientDisconnected(conn mnet.Client)

ClientDisconnected from server

func (*Server) HandleClientPacket

func (server *Server) HandleClientPacket(conn mnet.Client, reader mpacket.Reader)

HandleClientPacket data

func (*Server) HandleServerPacket

func (server *Server) HandleServerPacket(conn mnet.Server, reader mpacket.Reader)

HandleServerPacket from world

func (*Server) Initialise

func (server *Server) Initialise(work chan func(), dbuser, dbpassword, dbaddress, dbport, dbdatabase string)

Initialise the server

func (*Server) RegisterWithWorld

func (server *Server) RegisterWithWorld(conn mnet.Server, ip []byte, port int16, maxPop int16)

RegisterWithWorld server

func (Server) SendCountdownToPlayers

func (server Server) SendCountdownToPlayers(time int32)

SendCountdownToPlayers - Send a countdown to players that appears as a clock

func (*Server) SendLostWorldConnectionMessage

func (server *Server) SendLostWorldConnectionMessage()

SendLostWorldConnectionMessage - Send message to players alerting them of whatever they do it won't be saved

Jump to

Keyboard shortcuts

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