Méthode | Description | |
---|---|---|
EndSession ( ) : void |
Ends the Session and changes its SessionState from Playing to Ended
|
|
ExecuteCommandOnServer ( |
Asks the Session to send a remote command call on the session host
|
|
ExecuteServerCommandOnClients ( |
Asks the Session to send a remote command call on all session clients
|
|
ListenIncoming ( ) : void |
Listens to all data received from the network interface
|
|
OnClosed ( ) : void |
Closes the Session and changes its SessionState to Closed
|
|
StartSession ( ) : void |
Starts the Session and changes its SessionState from Lobby to Playing
|
|
SynchronizeCommandOnClients ( |
Sends a request to clients to synchronize commands created on Server
|
|
SynchronizeSceneEntitiesOnClients ( ISceneEntity sceneEntity ) : void | ||
Update ( |
Update loop call
|
Méthode | Description | |
---|---|---|
NotifyServerSynchronizationDoneOnClient ( ) : void |
Notifies the server that the synchronization with the server is performed locally
|
Méthode | Description | |
---|---|---|
ConvertToSendDataOptions ( DataTransferOptions dataTransferOptions ) : SendDataOptions |
Converts DataTransferOptions to Xbox Live SendDataOptions
|
|
LiveSession ( Microsoft.Xna.Framework.Net.NetworkSession networkSession ) : System |
Creates a new instance
|
|
OnLivePlayerJoined ( object sender, Microsoft.Xna.Framework.Net.GamerJoinedEventArgs e ) : void |
Raised when a player joins the session
|
|
OnLivePlayerLeft ( object sender, Microsoft.Xna.Framework.Net.GamerLeftEventArgs e ) : void |
Raised when a player leaves
|
|
OnLiveSessionEnded ( object sender, GameEndedEventArgs e ) : void | ||
OnLiveSessionStarted ( object sender, GameStartedEventArgs e ) : void |
Raised when the Session started
|
|
WriteNetworkValue ( Microsoft.Xna.Framework.Net.PacketWriter &packetWriter, object networkValue ) : void |
Helper method to write the network value to the PacketWriter
|
public ExecuteCommandOnServer ( |
||
command | The command that should be executed | |
Résultat | void |
public ExecuteServerCommandOnClients ( |
||
command | The command that should be executed | |
Résultat | void |
protected NotifyServerSynchronizationDoneOnClient ( ) : void | ||
Résultat | void |
public SynchronizeCommandOnClients ( |
||
command | ||
Résultat | void |
public SynchronizeSceneEntitiesOnClients ( ISceneEntity sceneEntity ) : void | ||
sceneEntity | ISceneEntity | |
Résultat | void |
public Update ( |
||
gameTime | ||
Résultat | void |