game_client

package
v0.0.0-...-a025cc2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameClient

type GameClient interface {
	Receive(data string) error
}

type GameLobby

type GameLobby interface {
	GetGameTypes() (gameTypes []om.GameType, err error)
	GetOpenGames(gameType om.GameType) (games []om.Game, err error)
	CreateGame(gameType om.GameType, state string) (gameId string, err error)
	Join(gameId string) (playerId, err error)
	StartGame(playerId, gameId string) (err error)
}

type RunningGame

type RunningGame interface {
	Do(playerId string, action string, data string) (result string, err error)
	Leave() (err error)
}

Jump to

Keyboard shortcuts

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