Пример #1
0
 /// <summary>
 /// Adds new players to an existing match instead of starting a new match.
 /// </summary>
 /// <param name="match">Match.</param>
 public void AddPlayersToMatch(GKMatch match)
 {
     if (match != null)
     {
         C.GKMatchmakerViewController_addPlayersToMatch(SelfPtr(), match.ToPointer());
     }
 }
Пример #2
0
        /// <summary>
        /// Adds players to an existing match.
        /// </summary>
        /// <param name="match">Match.</param>
        /// <param name="matchRequest">Match request.</param>
        /// <param name="completionHandler">Completion handler.</param>
        public void AddPlayersToMatch(GKMatch match, GKMatchRequest matchRequest, Action <NSError> completionHandler)
        {
            Util.NullArgumentTest(match);
            Util.NullArgumentTest(matchRequest);

            C.GKMatchmaker_addPlayersToMatch(
                SelfPtr(),
                match.ToPointer(),
                matchRequest.ToPointer(),
                ErrorCallback,
                PInvokeCallbackUtil.ToIntPtr(completionHandler));
        }
Пример #3
0
        /// <summary>
        /// Informs Game Center that programmatic matchmaking has finished.
        /// </summary>
        /// <param name="match">Match.</param>
        public void FinishMatchmakingForMatch(GKMatch match)
        {
            Util.NullArgumentTest(match);

            C.GKMatchmaker_finishMatchmakingForMatch(SelfPtr(), match.ToPointer());
        }