Пример #1
0
 public override void HandleInviteFromGameCenter(object[] playersToInvite)
 {
     Player.LoadPlayersByIDs(playersToInvite.Cast <string>().ToArray(), delegate(Player[] players) {
         if (players.Length > 0)
         {
             TurnBasedMatchesController._OnInvitePlayers(players);
         }
     });
 }
Пример #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);
                    }
                });
            }
        }
Пример #3
0
 public override void PlayerQuit(GKTurnBasedMatchmakerViewController viewController, GKTurnBasedMatch match)
 {
     TurnBasedMatchesController._OnPlayerQuit(match);
 }
Пример #4
0
        public override void DidFind(GKTurnBasedMatchmakerViewController viewController, GKTurnBasedMatch match)
        {
            UIApplication.deviceRootViewController.DismissViewController(true, null);

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

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

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