Метод | Описание | |
---|---|---|
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 ( |
||
SynchronizeSceneEntitiesOnClients ( ISceneEntity sceneEntity ) : void | ||
Update ( |
Update loop call
|
Метод | Описание | |
---|---|---|
NotifyServerSynchronizationDoneOnClient ( ) : void |
Notifies the server that the synchronization with the server is performed locally
|
Метод | Описание | |
---|---|---|
AddNewPlayersOnServer ( ) : List |
||
BeginCreate ( string serverHost, SessionType sessionType, int maxLocalGamers, int maxGamers, int privateReservedSlots, SessionProperties sessionProperties, AsyncCallback callback, object asyncState ) : IAsyncResult | ||
BeginFind ( SessionType sessionType, int maxLocalPlayers, SessionProperties sessionProperties, AsyncCallback callback, object asyncState ) : IAsyncResult | ||
BeginFindWan ( SessionType sessionType, int maxLocalPlayers, SessionProperties sessionProperties, string host, int port, AsyncCallback callback, object asyncState ) : IAsyncResult | ||
BeginJoin ( |
||
ConvertToNetDeliveryMethod ( DataTransferOptions dataTransferOptions ) : NetDeliveryMethod |
Converts DataTransferOptions to NetDeliveryOptions
|
|
Create ( string serverHost, SessionType sessionType, int maxGamers, int privateReservedSlots, SessionProperties sessionProperties, bool isHost ) : |
||
EndCreate ( IAsyncResult result ) : |
||
EndCreateOrJoin ( IAsyncResult result ) : |
||
EndFind ( IAsyncResult result ) : List |
||
EndJoin ( IAsyncResult result ) : |
||
Find ( SessionType sessionType, int maxLocalPlayers, SessionProperties sessionProperties, string host = null, int port = LidgrenSessionManager.ServerPort ) : List |
||
Join ( |
||
LidgrenSession ( SessionType sessionType, int maxGamers, int privateReservedSlots, SessionProperties sessionProperties ) : System |
This constructor is used to create a temporary session exclusivly for the purpose of listening for Discovery messages
|
|
LidgrenSession ( string serverHost, SessionType sessionType, int maxGamers, int privateReservedSlots, SessionProperties sessionProperties, bool isHost ) : System | ||
ProcessClientMessages ( ) : void | ||
ProcessServerMessages ( ) : void | ||
RetrieveCommandsFromServer ( ) : void | ||
RetrieveDisconnectedPlayersFromServer ( ) : void | ||
RetrieveNewPlayersFromServer ( ) : void | ||
RetrieveRemotePlayersFromServer ( ) : void | ||
RetrieveSceneEntitiesFromServer ( ) : void | ||
RetrieveSessionStateChangedFromServer ( ) : void | ||
SendAllLocalPlayersToServer ( ) : void | ||
SendDisconnectedPlayersToClients ( List |
||
SendNewPlayersToClients ( List |
||
SendPlayersListToJustConnectedClient ( ) : void | ||
SendSessionStateChangedToClients ( ) : void | ||
WriteNetworkValue ( |
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 |