C# Класс Indiefreaks.Xna.Sessions.Local.LocalSession

Наследование: Session
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
EndSession ( ) : void

Ends the Session and changes its SessionState from Playing to Ended

ExecuteCommandOnServer ( Command command ) : void

Asks the Session to send a remote command call on the session host

ExecuteServerCommandOnClients ( Command command ) : void

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
StartSession ( ) : void

Starts the Session and changes its SessionState from Lobby to Playing

SynchronizeCommandOnClients ( Command command ) : void
SynchronizeSceneEntitiesOnClients ( ISceneEntity sceneEntity ) : void
Update ( GameTime gameTime ) : void

Update loop call

Защищенные методы

Метод Описание
NotifyServerSynchronizationDoneOnClient ( ) : void

Notifies the server that the synchronization with the server is performed locally

Приватные методы

Метод Описание
ChangeSessionStateRequest ( SessionState newStatus ) : void

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

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

Ends the Session and changes its SessionState from Playing to Ended
public EndSession ( ) : void
Результат void

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

Asks the Session to send a remote command call on the session host
public ExecuteCommandOnServer ( Command command ) : void
command Indiefreaks.Xna.Logic.Command The command that should be executed
Результат void

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

Asks the Session to send a remote command call on all session clients
public ExecuteServerCommandOnClients ( Command command ) : void
command Indiefreaks.Xna.Logic.Command The command that should be executed
Результат void

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

Listens to all data received from the network interface
public ListenIncoming ( ) : void
Результат void

NotifyServerSynchronizationDoneOnClient() защищенный Метод

Notifies the server that the synchronization with the server is performed locally
protected NotifyServerSynchronizationDoneOnClient ( ) : void
Результат void

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

public OnClosed ( ) : void
Результат void

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

Starts the Session and changes its SessionState from Lobby to Playing
public StartSession ( ) : void
Результат void

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

public SynchronizeCommandOnClients ( Command command ) : void
command Indiefreaks.Xna.Logic.Command
Результат void

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

public SynchronizeSceneEntitiesOnClients ( ISceneEntity sceneEntity ) : void
sceneEntity ISceneEntity
Результат void

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

Update loop call
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void