C# Class SceneDemo1.SceneDemo1GameServer

Inheritance: Fusion.Engine.Server.GameServer
Afficher le fichier Open project: demiurghg/FusionEngine

Méthodes publiques

Méthode 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 méthode

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

ClientConnected() public méthode

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

ClientDisconnected() public méthode

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

FeedCommand() public méthode

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

FeedNotification() public méthode

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

Initialize() public méthode

public Initialize ( ) : void
Résultat void

LoadContent() public méthode

Starts server with given map/level.
public LoadContent ( string map ) : void
map string
Résultat void

SceneDemo1GameServer() public méthode

Ctor
public SceneDemo1GameServer ( Game game ) : System
game Game
Résultat System

ServerInfo() public méthode

Gets server info.
public ServerInfo ( ) : string
Résultat string

UnloadContent() public méthode

Kills server
public UnloadContent ( ) : void
Résultat void

Update() public méthode

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