theater

package
v0.0.0-...-ebd9f65 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2018 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	UpdateGid *sql.Stmt

	MapGetStatsQuery       map[int]*sql.Stmt
	MapSetServerStatsQuery map[int]*sql.Stmt
	MapSetPlayerStatsQuery map[int]*sql.Stmt
	// contains filtered or unexported fields
}

func NewDatabase

func NewDatabase(conn *sql.DB) (*Database, error)

type GameClient

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

GameClient Represents a game client connected to theater

type GameServer

type GameServer struct {
	Platform string
	// contains filtered or unexported fields
}

GameServer Represents a game server and it's data

type Theater

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

Theater Handles incoming and outgoing theater communication

func New

func New(name, bind string, conn *sql.DB, lvl *level.Level) *Theater

New creates and starts a new TheaterManager

func (*Theater) CGAM

func (tm *Theater) CGAM(event network.EvProcess)

CGAM - CreateGameParameters

func (*Theater) CONN

func (tm *Theater) CONN(event network.EvProcess)

CONN - Enters Theater

func (*Theater) ECHO

func (tm *Theater) ECHO(event network.SocketUDPEvent)

ECHO - Broadcast The Server to NAT Interface

func (*Theater) ECNL

func (tm *Theater) ECNL(event network.EvProcess)

ECNL - EnterConnectionLost

func (*Theater) EGAM

func (tm *Theater) EGAM(event network.EvProcess)

EGAM - EnterGame

func (*Theater) EGRS

func (tm *Theater) EGRS(event network.EvProcess)

EGRS - Enter Game Host Response

func (*Theater) GDAT

func (tm *Theater) GDAT(event network.EvProcess)

GDAT - CLIENT called to get data about the server

func (*Theater) GREM

func (tm *Theater) GREM(event network.EvProcess)

GREM - Enter Game Host Response

func (*Theater) Listen

func (tm *Theater) Listen()

func (*Theater) NewState

func (tm *Theater) NewState(ident string) *level.State

func (*Theater) PENT

func (tM *Theater) PENT(event network.EvProcess)

PENT - PlayerEntered

func (*Theater) PING

func (tm *Theater) PING(event *network.EventNewClient)

func (*Theater) PLVT

func (tM *Theater) PLVT(event network.EvProcess)

PLVT - PlayerLeaveTeam

func (*Theater) UBRA

func (tM *Theater) UBRA(event network.EvProcess)

UBRA - "UpdateBracket" updates players connected (AP)

func (*Theater) UGAM

func (tM *Theater) UGAM(event network.EvProcess)

func (*Theater) UPLA

func (tM *Theater) UPLA(event network.EvProcess)

Update Player

func (*Theater) USER

func (tm *Theater) USER(event network.EvProcess)

USER - Check User for Login - server not working atm

Jump to

Keyboard shortcuts

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