Enumeration

GKMatchType

The kind of match being created.

Declaration

enum GKMatchType : UInt

Topics

Constants

case peerToPeer

A peer-to-peer match hosted by Game Center. It is represented by a GKMatch object.

case hosted

A match hosted on your private server.

case turnBased

A turn-based match hosted by Game Center. It is represented by a GKTurnBasedMatch object.

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.

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.

var defaultNumberOfPlayers: Int

The default number of players for the match.