The SessionProperties contains a set of data used to filter session queries
If possible use int enumerations as they'll be easier to maintain in the game
Пример #1
0
 /// <summary>
 /// Sends a Find query on the network interface to look for AvailableSession instances asynchrnously
 /// </summary>
 /// <param name="sessionType">The SessionType we're looking for</param>
 /// <param name="maxLocalPlayers">The Maximum local players that can be added to the session used to filter sessions that have a limited number of opened public slots</param>
 /// <param name="sessionProperties">The SessionProperties that will be used to filter query results. Can be null</param>
 public abstract void FindSessions(SessionType sessionType, int maxLocalPlayers,
                                   SessionProperties sessionProperties);
Пример #2
0
 /// <summary>
 /// Sends a Find query on the network interface to look for AvailableSession instances asynchrnously
 /// </summary>
 /// <param name="sessionType">The SessionType we're looking for</param>
 /// <param name="maxLocalPlayers">The Maximum local players that can be added to the session used to filter sessions that have a limited number of opened public slots</param>
 /// <param name="sessionProperties">The SessionProperties that will be used to filter query results. Can be null</param>
 public abstract void FindSessions(SessionType sessionType, int maxLocalPlayers,
                                   SessionProperties sessionProperties);
Пример #3
0
 /// <summary>
 /// Creates a wide area network session
 /// </summary>
 /// <param name="maxPlayers">The total maximum players for this session</param>
 /// <param name="sessionProperties">The SessionProperties that will be used to find this session on the network. Can be null</param>
 /// <remarks>it doesn't yet support multiple local players</remarks>
 public abstract void CreateWanSession(int maxPlayers, SessionProperties sessionProperties);
Пример #4
0
 /// <summary>
 /// Creates a wide area network session
 /// </summary>
 /// <param name="maxPlayers">The total maximum players for this session</param>
 /// <param name="sessionProperties">The SessionProperties that will be used to find this session on the network. Can be null</param>
 /// <remarks>it doesn't yet support multiple local players</remarks>
 public abstract void CreateWanSession(int maxPlayers, SessionProperties sessionProperties);