C# Class Indiefreaks.Xna.Sessions.Live.LiveSessionManager

The LiveSessionManager is the Xbox Live SessionManager implementation
Inheritance: SessionManager
Afficher le fichier Open project: Indiefreaks/igf

Méthodes publiques

Méthode Description
CreateLanSession ( int maxPlayers, SessionProperties sessionProperties ) : void

Creates a local area network session

it doesn't yet support multiple local players

CreateSinglePlayerSession ( ) : void

Creates a Single Player Session

No network resources will be used

CreateSplitScreenSession ( ) : void

Creates a Split Screen Session

Not implemented yet

CreateWanSession ( int maxPlayers, SessionProperties sessionProperties ) : void

Creates a wide area network session

it doesn't yet support multiple local players

FindSessions ( SessionType sessionType, int maxLocalPlayers, SessionProperties sessionProperties ) : void

Sends a Find query on the network interface to look for AvailableSession instances asynchrnously

IdentifyPlayer ( PlayerInput playerInput ) : void

Identifies a player

JoinSession ( AvailableSession availableSession ) : void

Sends a Join query to the Session asynchronously

LiveSessionManager ( Application application ) : System

Creates a new instance

Update ( GameTime gameTime ) : void

Updates the object and its contained resources.

Private Methods

Méthode Description
OnLiveGamerSignedIn ( object sender, SignedInEventArgs e ) : void

Raised when the Live player signed in

OnLiveGamerSignedOut ( object sender, SignedOutEventArgs e ) : void

Raised when the Live player signed out

OnLiveSessionCreated ( IAsyncResult asyncResult ) : void

Raised when the Session is created

OnLiveSessionJoined ( IAsyncResult asyncResult ) : void

Raised when the the player joined the Session

OnLiveSessionsFound ( IAsyncResult asyncResult ) : void

Raised when a Live find query returns

Method Details

CreateLanSession() public méthode

Creates a local area network session
it doesn't yet support multiple local players
public CreateLanSession ( int maxPlayers, SessionProperties sessionProperties ) : void
maxPlayers int The total maximum players for this session
sessionProperties SessionProperties The SessionProperties that will be used to find this session on the network. Can be null
Résultat void

CreateSinglePlayerSession() public méthode

Creates a Single Player Session
No network resources will be used
public CreateSinglePlayerSession ( ) : void
Résultat void

CreateSplitScreenSession() public méthode

Creates a Split Screen Session
Not implemented yet
public CreateSplitScreenSession ( ) : void
Résultat void

CreateWanSession() public méthode

Creates a wide area network session
it doesn't yet support multiple local players
public CreateWanSession ( int maxPlayers, SessionProperties sessionProperties ) : void
maxPlayers int The total maximum players for this session
sessionProperties SessionProperties The SessionProperties that will be used to find this session on the network. Can be null
Résultat void

FindSessions() public méthode

Sends a Find query on the network interface to look for AvailableSession instances asynchrnously
public FindSessions ( SessionType sessionType, int maxLocalPlayers, SessionProperties sessionProperties ) : void
sessionType SessionType The SessionType we're looking for
maxLocalPlayers int The Maximum local players that can be added to the session used to filter sessions that have a limited number of opened public slots
sessionProperties SessionProperties The SessionProperties that will be used to filter query results. Can be null
Résultat void

IdentifyPlayer() public méthode

Identifies a player
public IdentifyPlayer ( PlayerInput playerInput ) : void
playerInput Indiefreaks.Xna.Input.PlayerInput The PlayerInput instance used by the player to identify
Résultat void

JoinSession() public méthode

Sends a Join query to the Session asynchronously
public JoinSession ( AvailableSession availableSession ) : void
availableSession AvailableSession The Session we are trying to join
Résultat void

LiveSessionManager() public méthode

Creates a new instance
public LiveSessionManager ( Application application ) : System
application Application
Résultat System

Update() public méthode

Updates the object and its contained resources.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void