Property | Type | Description | |
---|---|---|---|
Guid | System.Guid |
Method | Description | |
---|---|---|
FeedNotification ( string message ) : void |
Feed notification from server.
|
|
FeedSnapshot ( |
Feed server snapshot to client. Called when fresh snapshot arrived.
|
|
FinalizeLoad ( |
Called when GameLoader finished loading. This method lets client to complete loading process in main thread. Add mesh instances, sounds, setup sky, hdr etc in this method.
|
|
GameClient ( Game game ) : System |
Initializes a new instance of this class.
|
|
LoadContent ( string serverInfo ) : |
Called when connection request accepted by server. Method returns GameLoader that could load all content according server info.
|
|
NotifyServer ( string message ) : void |
Sends server string message. This method may be used for chat or remote server control throw Shell.
|
|
UnloadContent ( ) : void |
Called when client disconnected, dropped, kicked or timeouted. Client must purge all level-associated content. In most cases you need just to call Content.Unload().
|
|
Update ( |
Called when the game has determined that client-side logic needs to be processed.
|
|
UserInfo ( ) : string |
Gets user information. Called when client-server game logic has determined that server needs user information.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases all resources used by the GameClient class.
|
Method | Description | |
---|---|---|
ConnectInternal ( string host, int port ) : void |
Request connection. Result depends on current client state.
|
|
DisconnectInternal ( string message ) : void |
Request diconnect. Result depends on current client state.
|
|
DispatchDataIM ( |
|
|
DispatchIM ( Lidgren.Network.NetClient client ) : void |
|
|
DispatchSnapshot ( |
|
|
DispatchStatusChange ( |
|
|
InitInternal ( ) : void |
Inits internal stuff
|
|
InitiateLoadLevel ( string serverInfo ) : void | ||
NotifyInternal ( string message ) : void |
|
|
SendDiscoveryRequest ( ) : void |
|
|
SendUserCommand ( Lidgren.Network.NetClient client, uint recvSnapshotFrame, uint cmdCounter, byte userCmd ) : void |
|
|
SetState ( State newState ) : void |
Sets state
|
|
UpdateInternal ( |
Updates client.
|
|
Wait ( ) : void |
Wait for client completion.
|
public abstract FeedNotification ( string message ) : void | ||
message | string | Message from server |
return | void |
public abstract FeedSnapshot ( |
||
serverTime | Server time includes number of server frames, total server time and elapsed time since last server frame. /// Snapshot data stream. | |
snapshot | byte | |
ackCommandID | uint | Acknoledged (e.g. received and responsed) command ID. Zero value means first snapshot. |
return | void |
public abstract FinalizeLoad ( |
||
loader | ||
return | void |
public abstract LoadContent ( string serverInfo ) : |
||
serverInfo | string | |
return |
public NotifyServer ( string message ) : void | ||
message | string | |
return | void |
public abstract Update ( |
||
gameTime | Cliemt-side game time. | |
sentCommandID | uint | Command's ID that are going to be sent. |
return | byte[] |