Ejemplo n.º 1
0
        internal void HandleLoadingScores(PlayGamesLeaderboard board, LeaderboardScoreData scoreData, Action <bool> callback)
        {
            bool flag = board.SetFromData(scoreData);

            if (flag && !board.HasAllScores() && scoreData.NextPageToken != null)
            {
                int rowCount = board.range.count - board.ScoreCount;
                this.mClient.LoadMoreScores(scoreData.NextPageToken, rowCount, (Action <LeaderboardScoreData>)(nextScoreData => this.HandleLoadingScores(board, nextScoreData, callback)));
            }
            else
            {
                callback(flag);
            }
        }
        internal void HandleLoadingScores(PlayGamesLeaderboard board,
            LeaderboardScoreData scoreData, Action<bool> callback)
        {
            bool ok = board.SetFromData(scoreData);
            if (ok && !board.HasAllScores() && scoreData.NextPageToken != null)
            {
                int rowCount = board.range.count - board.ScoreCount;

                // need to load more scores
                mClient.LoadMoreScores(scoreData.NextPageToken, rowCount,
                    (nextScoreData) =>
                    HandleLoadingScores(board, nextScoreData, callback));
            }
            else
            {
                callback(ok);
            }
        }
        internal void HandleLoadingScores(PlayGamesLeaderboard board, LeaderboardScoreData scoreData, Action <bool> callback)
        {
            //IL_004f: Unknown result type (might be due to invalid IL or missing references)
            //IL_0054: Unknown result type (might be due to invalid IL or missing references)
            bool flag = board.SetFromData(scoreData);

            if (flag && !board.HasAllScores() && scoreData.NextPageToken != null)
            {
                Range range    = board.range;
                int   rowCount = range.count - board.ScoreCount;
                mClient.LoadMoreScores(scoreData.NextPageToken, rowCount, delegate(LeaderboardScoreData nextScoreData)
                {
                    HandleLoadingScores(board, nextScoreData, callback);
                });
            }
            else
            {
                callback(flag);
            }
        }
Ejemplo n.º 4
0
        internal void HandleLoadingScores(PlayGamesLeaderboard board,
            LeaderboardScoreData scoreData, Action<bool> callback)
        {
            bool ok = board.SetFromData(scoreData);
            if (ok && !board.HasAllScores() && scoreData.NextPageToken != null)
            {
                int rowCount = board.range.count - board.ScoreCount;

                // need to load more scores
                mClient.LoadMoreScores(scoreData.NextPageToken, rowCount,
                    (nextScoreData) =>
                    HandleLoadingScores(board, nextScoreData, callback));
            }
            else
            {
                callback(ok);
            }
        }
Ejemplo n.º 5
0
 internal void HandleLoadingScores(PlayGamesLeaderboard board, LeaderboardScoreData scoreData, Action <bool> callback)
 {