C# Class SceneDemo1.SceneDemo1GameServer

Inheritance: Fusion.Engine.Server.GameServer
Mostrar archivo Open project: demiurghg/FusionEngine

Public Methods

Method Description
ApproveClient ( string id, string userInfo, string &reason ) : bool

Approves client by id and user info.

ClientConnected ( string id, string userInfo ) : void

Notifies server that client connected.

ClientDisconnected ( string id, string userInfo ) : void

Notifies server that client disconnected.

FeedCommand ( string id, byte userCommand ) : void

Feed client commands from particular client.

FeedNotification ( string id, string message ) : void

Feed server notification from particular client.

Initialize ( ) : void

LoadContent ( string map ) : void

Starts server with given map/level.

SceneDemo1GameServer ( Game game ) : System

Ctor

ServerInfo ( ) : string

Gets server info.

UnloadContent ( ) : void

Kills server

Update ( GameTime gameTime ) : byte[]

Runs one step of server-side world simulation. Do not close the stream.

Method Details

ApproveClient() public method

Approves client by id and user info.
public ApproveClient ( string id, string userInfo, string &reason ) : bool
id string
userInfo string
reason string
return bool

ClientConnected() public method

Notifies server that client connected.
public ClientConnected ( string id, string userInfo ) : void
id string
userInfo string
return void

ClientDisconnected() public method

Notifies server that client disconnected.
public ClientDisconnected ( string id, string userInfo ) : void
id string
userInfo string
return void

FeedCommand() public method

Feed client commands from particular client.
public FeedCommand ( string id, byte userCommand ) : void
id string
userCommand byte
return void

FeedNotification() public method

Feed server notification from particular client.
public FeedNotification ( string id, string message ) : void
id string
message string
return void

Initialize() public method

public Initialize ( ) : void
return void

LoadContent() public method

Starts server with given map/level.
public LoadContent ( string map ) : void
map string
return void

SceneDemo1GameServer() public method

Ctor
public SceneDemo1GameServer ( Game game ) : System
game Game
return System

ServerInfo() public method

Gets server info.
public ServerInfo ( ) : string
return string

UnloadContent() public method

Kills server
public UnloadContent ( ) : void
return void

Update() public method

Runs one step of server-side world simulation. Do not close the stream.
public Update ( GameTime gameTime ) : byte[]
gameTime GameTime
return byte[]