Documentation
¶
Index ¶
- func StartMainLoop(s *Server)
- type Console
- type Mspt
- type Server
- func (s *Server) AddPlayer(conn network.Connection, player ents.Player)
- func (s *Server) Broadcast(messages ...string)
- func (s *Server) Disconnect(conn network.Connection)
- func (s *Server) GetConsole() ents.Console
- func (s *Server) GetMspt() api.Mspt
- func (s *Server) GetPacketManager() network.PacketManager
- func (s *Server) GetPlayer(conn network.Connection) ents.Player
- func (s *Server) GetPlayers() *map[network.Connection]ents.Player
- func (s *Server) GetPluginManager() api_plugin.PluginManager
- func (s *Server) GetScheduler() *tasks.Scheduler
- func (s *Server) GetWorldManager() world.WorldManager
- func (s *Server) LoadPlugins()
- func (s *Server) Stop()
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) SendMsgColor ¶
type Mspt ¶
type Mspt struct {
// contains filtered or unexported fields
}
func (Mspt) GetPromedium ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func Start ¶
func Start(conf conf.ServerConfig) *Server
func (*Server) Disconnect ¶
func (s *Server) Disconnect(conn network.Connection)
func (*Server) GetConsole ¶
func (*Server) GetPacketManager ¶
func (s *Server) GetPacketManager() network.PacketManager
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 (*Server) GetWorldManager ¶
func (s *Server) GetWorldManager() world.WorldManager
func (*Server) LoadPlugins ¶
func (s *Server) LoadPlugins()
Click to show internal directories.
Click to hide internal directories.