메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
NotifyServerSynchronizationDoneOnClient ( ) : void |
Notifies the server that the synchronization with the server is performed locally
|
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | void |
public ExecuteServerCommandOnClients ( |
||
command | The command that should be executed | |
리턴 | void |
protected NotifyServerSynchronizationDoneOnClient ( ) : void | ||
리턴 | void |
public SynchronizeCommandOnClients ( |
||
command | ||
리턴 | void |
public SynchronizeSceneEntitiesOnClients ( ISceneEntity sceneEntity ) : void | ||
sceneEntity | ISceneEntity | |
리턴 | void |
public Update ( |
||
gameTime | ||
리턴 | void |