matchmaking

package
v0.0.0-...-0379cd4 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	ID         int
	LobbyID    int
	GameServer *network.Client

	PlayersJoining int
	PlayersPlaying int
	PlayerSlots    int
}

type Pool

type Pool struct {
	Games map[int]*Game
	// contains filtered or unexported fields
}

func NewPool

func NewPool() *Pool

func (*Pool) AddGame

func (p *Pool) AddGame(game *Game) error

func (*Pool) FindAvailableGame

func (p *Pool) FindAvailableGame() (*Game, error)

func (*Pool) GetGame

func (p *Pool) GetGame(id int) (*Game, error)

Jump to

Keyboard shortcuts

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