Documentation ¶
Index ¶
- func PopulateDropTable(dropJSON string) error
- type Server
- func (server *Server) ClientDisconnected(conn mnet.Client)
- func (server *Server) HandleClientPacket(conn mnet.Client, reader mpacket.Reader)
- func (server *Server) HandleServerPacket(conn mnet.Server, reader mpacket.Reader)
- func (server *Server) Initialise(work chan func(), dbuser, dbpassword, dbaddress, dbport, dbdatabase string)
- func (server *Server) RegisterWithWorld(conn mnet.Server, ip []byte, port int16, maxPop int16)
- func (server Server) SendCountdownToPlayers(time int32)
- func (server *Server) SendLostWorldConnectionMessage()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PopulateDropTable ¶
PopulateDropTable from json file
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server state
func (*Server) ClientDisconnected ¶
ClientDisconnected from server
func (*Server) HandleClientPacket ¶
HandleClientPacket data
func (*Server) HandleServerPacket ¶
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 ¶
RegisterWithWorld server
func (Server) SendCountdownToPlayers ¶
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
Click to show internal directories.
Click to hide internal directories.