C# Класс SceneDemo1.SceneDemo1GameClient

Наследование: Fusion.Engine.Client.GameClient
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

FeedNotification() публичный Метод

Feed server notification to client. Called when fresh snapshot arrived.
public FeedNotification ( string message ) : void
message string
Результат void

FeedSnapshot() публичный Метод

Feed server snapshot to client. Called when fresh snapshot arrived.
public FeedSnapshot ( byte snapshot, bool initial ) : void
snapshot byte
initial bool
Результат void

Initialize() публичный Метод

Initializes game
public Initialize ( ) : void
Результат void

LoadContent() публичный Метод

Called when connection request accepted by server. Client could start loading models, textures, models etc.
public LoadContent ( string serverInfo ) : void
serverInfo string
Результат void

SceneDemo1GameClient() публичный Метод

Ctor
public SceneDemo1GameClient ( Game game ) : System
game Game
Результат System

UnloadContent() публичный Метод

Called when client disconnected, dropped, kicked or timeouted. Client must purge all level-associated content. Reason???
public UnloadContent ( ) : void
Результат void

Update() публичный Метод

Runs one step of client-side simulation and render world state. Do not close the stream.
public Update ( GameTime gameTime ) : byte[]
gameTime GameTime
Результат byte[]

UserInfo() публичный Метод

public UserInfo ( ) : string
Результат string