games

package
v0.0.0-...-0992052 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2017 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package games contains the game server the games server consist of the tables server and players server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server the game server structur.

func New

func New(errCh chan<- error, save bool, saveDir string, archiverPort int) (g *Server, err error)

New Create a game server.

func (*Server) PlayersDisableCh

func (g *Server) PlayersDisableCh() chan<- *players.DisData

PlayersDisableCh returns the channel to disable or enable player on the players server.

func (*Server) PlayersJoinCh

func (g *Server) PlayersJoinCh() chan<- *players.Player

PlayersJoinCh returns the channel player join the players server.

func (*Server) Start

func (g *Server) Start()

Start starts the game server.

func (*Server) Stop

func (g *Server) Stop()

Stop stops the game server.

Jump to

Keyboard shortcuts

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