Instance Property

defaultNumberOfPlayers

The default number of players for the match.

Declaration

var defaultNumberOfPlayers: Int { get set }

Discussion

If this property is not set, then the default number of players is equal to the value stored in the maxPlayers property. The default number of players determines the number of invitees shown in the standard matchmaking user interface. The player can choose to override this to add or remove slots.

See Also

Determining the Number of Players Allowed in the Game

class func maxPlayersAllowedForMatch(of: GKMatchType) -> Int

Returns the maximum number of players allowed in the match request for a given match type.

enum GKMatchType

The kind of match being created.

var maxPlayers: Int

The maximum number of players that may join the match.

var minPlayers: Int

The minimum number of players that may join the match.