C# Class SceneDemo1.SceneDemo1GameClient

Inheritance: Fusion.Engine.Client.GameClient
Afficher le fichier Open project: demiurghg/FusionEngine

Méthodes publiques

Méthode Description
FeedNotification ( string message ) : void

Feed server notification to client. Called when fresh snapshot arrived.

FeedSnapshot ( byte snapshot, bool initial ) : void

Feed server snapshot to client. Called when fresh snapshot arrived.

Initialize ( ) : void

Initializes game

LoadContent ( string serverInfo ) : void

Called when connection request accepted by server. Client could start loading models, textures, models etc.

SceneDemo1GameClient ( Game game ) : System

Ctor

UnloadContent ( ) : void

Called when client disconnected, dropped, kicked or timeouted. Client must purge all level-associated content. Reason???

Update ( GameTime gameTime ) : byte[]

Runs one step of client-side simulation and render world state. Do not close the stream.

UserInfo ( ) : string

Method Details

FeedNotification() public méthode

Feed server notification to client. Called when fresh snapshot arrived.
public FeedNotification ( string message ) : void
message string
Résultat void

FeedSnapshot() public méthode

Feed server snapshot to client. Called when fresh snapshot arrived.
public FeedSnapshot ( byte snapshot, bool initial ) : void
snapshot byte
initial bool
Résultat void

Initialize() public méthode

Initializes game
public Initialize ( ) : void
Résultat void

LoadContent() public méthode

Called when connection request accepted by server. Client could start loading models, textures, models etc.
public LoadContent ( string serverInfo ) : void
serverInfo string
Résultat void

SceneDemo1GameClient() public méthode

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

UnloadContent() public méthode

Called when client disconnected, dropped, kicked or timeouted. Client must purge all level-associated content. Reason???
public UnloadContent ( ) : void
Résultat void

Update() public méthode

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

UserInfo() public méthode

public UserInfo ( ) : string
Résultat string