server

package
v0.0.0-...-771882a Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartMainLoop

func StartMainLoop(s *Server)

Types

type Console

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

func (*Console) SendMsg

func (c *Console) SendMsg(messages ...string)

func (*Console) SendMsgColor

func (c *Console) SendMsgColor(messages ...string)

type Mspt

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

func (Mspt) GetMax

func (m Mspt) GetMax() int64

func (Mspt) GetMin

func (m Mspt) GetMin() int64

func (Mspt) GetPromedium

func (m Mspt) GetPromedium() float32

func (*Mspt) Handle

func (m *Mspt) Handle(startTime int64) int64

type Server

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

func Start

func Start(conf conf.ServerConfig) *Server

func (*Server) AddPlayer

func (s *Server) AddPlayer(conn network.Connection, player ents.Player)

func (*Server) Broadcast

func (s *Server) Broadcast(messages ...string)

func (*Server) Disconnect

func (s *Server) Disconnect(conn network.Connection)

func (*Server) GetConsole

func (s *Server) GetConsole() ents.Console

func (*Server) GetMspt

func (s *Server) GetMspt() api.Mspt

func (*Server) GetPacketManager

func (s *Server) GetPacketManager() network.PacketManager

func (*Server) GetPlayer

func (s *Server) GetPlayer(conn network.Connection) ents.Player

func (*Server) GetPlayers

func (s *Server) GetPlayers() *map[network.Connection]ents.Player

func (*Server) GetPluginManager

func (s *Server) GetPluginManager() api_plugin.PluginManager

func (*Server) GetScheduler

func (s *Server) GetScheduler() *tasks.Scheduler

func (*Server) GetWorldManager

func (s *Server) GetWorldManager() world.WorldManager

func (*Server) LoadPlugins

func (s *Server) LoadPlugins()

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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