Пример #1
0
        // Token: 0x06000067 RID: 103 RVA: 0x0000C050 File Offset: 0x0000A250
        public void LoadLeaderboardEntries()
        {
            SignedInGamer signedInGamer = Gamer.SignedInGamers[PlayerIndex.One];
            int           num           = ObjectSystem.globalVariables[114];

            try
            {
                LeaderboardIdentity leaderboardId;
                if (num == 0)
                {
                    leaderboardId = LeaderboardIdentity.Create(LeaderboardKey.BestScoreLifeTime, num);
                }
                else
                {
                    leaderboardId = LeaderboardIdentity.Create(LeaderboardKey.BestTimeLifeTime, num + 1);
                }
                GlobalAppDefinitions.gameMode = 7;
                LeaderboardReader.BeginRead(leaderboardId, signedInGamer, 100, new AsyncCallback(this.LeaderboardReadCallback), signedInGamer);
            }
            catch (GameUpdateRequiredException e)
            {
                this.ReadNullLeaderboardEntries();
                this.HandleGameUpdateRequired(e);
            }
            catch (Exception)
            {
                this.ReadNullLeaderboardEntries();
                Guide.BeginShowMessageBox("Xbox LIVE", EngineCallbacks.liveErrorMessage[(int)GlobalAppDefinitions.gameLanguage], new string[]
                {
                    "OK"
                }, 0, MessageBoxIcon.Alert, new AsyncCallback(EngineCallbacks.LiveErrorMessage), null);
            }
        }
Пример #2
0
        public void LoadLeaderboard(Leaderboard board, FriendCollection friends, Gamer gamer)
        {
            LeaderboardIdentity identity = LeaderboardInfo.GetIdentity(board);

            Request    = LeaderboardReader.BeginRead(identity, friends, gamer, friends.Count + 1, null, gamer);
            Reader     = null;
            ReadState  = AsyncRequest.FullRead;
            NumEntries = 0;
            ResetCaches();
            Columns         = LeaderboardInfo.GetColumns(board);
            LeaderboardName = LeaderboardInfo.GetName(board);
        }
Пример #3
0
        public void LoadLeaderboard(Leaderboard board)
        {
            LeaderboardIdentity identity = LeaderboardInfo.GetIdentity(board);

            Request    = LeaderboardReader.BeginRead(identity, 0, 50, null, null);
            Reader     = null;
            ReadState  = AsyncRequest.FullRead;
            NumEntries = 0;
            ResetCaches();
            Columns         = LeaderboardInfo.GetColumns(board);
            LeaderboardName = LeaderboardInfo.GetName(board);
        }