C# Class GameState4Net.GameStateServer

Inheritance: Grapevine.Server.RESTServer
Mostra file Open project: mworchel/GameState4Net Class Usage Examples

Public Methods

Method Description
AddGameState ( string json ) : void
GameStateServer ( Grapevine.Server.Config config ) : Grapevine.Server
GameStateServer ( string host = "localhost", string port = "1234", string protocol = "http", string dirindex = "index.html", string webroot = null, int maxthreads = 5 ) : Grapevine.Server
RegisterGameStateCallback ( Action callback ) : void

Callbacks will most certainly be called from a thread different than the main thread

Method Details

AddGameState() public method

public AddGameState ( string json ) : void
json string
return void

GameStateServer() public method

public GameStateServer ( Grapevine.Server.Config config ) : Grapevine.Server
config Grapevine.Server.Config
return Grapevine.Server

GameStateServer() public method

public GameStateServer ( string host = "localhost", string port = "1234", string protocol = "http", string dirindex = "index.html", string webroot = null, int maxthreads = 5 ) : Grapevine.Server
host string
port string
protocol string
dirindex string
webroot string
maxthreads int
return Grapevine.Server

RegisterGameStateCallback() public method

Callbacks will most certainly be called from a thread different than the main thread
public RegisterGameStateCallback ( Action callback ) : void
callback Action
return void