Example #1
0
 public override void HandleInviteFromGameCenter(object[] playersToInvite)
 {
     Player.LoadPlayersByIDs(playersToInvite.Cast <string>().ToArray(), delegate(Player[] players) {
         if (players.Length > 0)
         {
             TurnBasedMatchesController._OnInvitePlayers(players);
         }
     });
 }
Example #2
0
        public override void DidRequestMatchWithPlayers(GKPlayer player, object[] playerIDsToInvite)
        {
            // send it to both realtime and turn-based if they are init'd
            if (RealTimeMatchesController._init)
            {
                RealTimeMatchesController._MatchInviteHandler(null, playerIDsToInvite);
            }

            if (TurnBasedMatchesController._init)
            {
                Player.LoadPlayersByIDs(playerIDsToInvite.Cast <string>().ToArray(), delegate(Player[] players) {
                    if (players.Length > 0)
                    {
                        TurnBasedMatchesController._OnInvitePlayers(players);
                    }
                });
            }
        }
Example #3
0
 public override void PlayerQuit(GKTurnBasedMatchmakerViewController viewController, GKTurnBasedMatch match)
 {
     TurnBasedMatchesController._OnPlayerQuit(match);
 }
Example #4
0
        public override void DidFind(GKTurnBasedMatchmakerViewController viewController, GKTurnBasedMatch match)
        {
            UIApplication.deviceRootViewController.DismissViewController(true, null);

            TurnBasedMatchesController._OnMatchMakerFoundMatch(match);
        }
Example #5
0
        public override void WasCancelled(GKTurnBasedMatchmakerViewController viewController)
        {
            UIApplication.deviceRootViewController.DismissViewController(true, null);

            TurnBasedMatchesController._OnMatchMakerCancelled();
        }
Example #6
0
        public override void DidFail(GKTurnBasedMatchmakerViewController viewController, NSError error)
        {
            UIApplication.deviceRootViewController.DismissViewController(true, null);

            TurnBasedMatchesController._OnMatchMakerFailed(error);
        }
Example #7
0
 public override void HandleTurnEvent(GKTurnBasedMatch match, bool didBecomeActive)
 {
     TurnBasedMatchesController._OnTurnEvent(match, didBecomeActive);
 }
Example #8
0
 public override void HandleMatchEnded(GKTurnBasedMatch match)
 {
     TurnBasedMatchesController._OnMatchEnded(match);
 }
Example #9
0
 public override void ReceivedExchangeRequest(GKPlayer player, GKTurnBasedExchange exchange, GKTurnBasedMatch match)
 {
     TurnBasedMatchesController._OnExchangeRequest(match, exchange);
 }
Example #10
0
 public override void ReceivedExchangeReplies(GKPlayer player, object[] replies, GKTurnBasedExchange exchange, GKTurnBasedMatch match)
 {
     TurnBasedMatchesController._OnExchangeCompleted(match, exchange, replies);
 }
Example #11
0
 public override void ReceivedExchangeCancellation(GKPlayer player, GKTurnBasedExchange exchange, GKTurnBasedMatch match)
 {
     TurnBasedMatchesController._OnExchangeCancellation(match, exchange);
 }
Example #12
0
 public override void ReceivedTurnEvent(GKPlayer player, GKTurnBasedMatch match, bool didBecomeActive)
 {
     TurnBasedMatchesController._OnTurnEvent(match, didBecomeActive);
 }
Example #13
0
 public override void Ended(GKPlayer player, GKTurnBasedMatch match)
 {
     TurnBasedMatchesController._OnMatchEnded(match);
 }