C# Class SceneDemo1.SceneDemo1GameClient

Inheritance: Fusion.Engine.Client.GameClient
Datei anzeigen Open project: demiurghg/FusionEngine

Public Methods

Method 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 method

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

FeedSnapshot() public method

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

Initialize() public method

Initializes game
public Initialize ( ) : void
return void

LoadContent() public method

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

SceneDemo1GameClient() public method

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

UnloadContent() public method

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

Update() public method

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

UserInfo() public method

public UserInfo ( ) : string
return string