예제 #1
0
 // Token: 0x06000ECA RID: 3786 RVA: 0x0005E192 File Offset: 0x0005C392
 public static int GetLeaderboardUserScore()
 {
     if (IntPtr.Size == 8)
     {
         return(ArcadeLeaderboard.GetLeaderboardUserScore_64());
     }
     return(ArcadeLeaderboard.GetLeaderboardUserScore());
 }
예제 #2
0
 // Token: 0x06000EC8 RID: 3784 RVA: 0x0005E168 File Offset: 0x0005C368
 public static int GetLeaderboardScoreCount()
 {
     if (IntPtr.Size == 8)
     {
         return(ArcadeLeaderboard.GetLeaderboardScoreCount_64());
     }
     return(ArcadeLeaderboard.GetLeaderboardScoreCount());
 }
예제 #3
0
 // Token: 0x06000EC6 RID: 3782 RVA: 0x0005E088 File Offset: 0x0005C288
 public static void UploadLeaderboardScore(StatusCallback callback, string pchLeaderboardName, string pchUserName, int nScore)
 {
     if (callback == null)
     {
         throw new InvalidOperationException("callback == null");
     }
     ArcadeLeaderboard.uploadLeaderboardScoreIl2cppCallback = new StatusCallback(callback.Invoke);
     Api.InternalStatusCallbacks.Add(new StatusCallback(ArcadeLeaderboard.UploadLeaderboardScoreIl2cppCallback));
     if (IntPtr.Size == 8)
     {
         ArcadeLeaderboard.UploadLeaderboardScore_64(new StatusCallback(ArcadeLeaderboard.UploadLeaderboardScoreIl2cppCallback), pchLeaderboardName, pchUserName, nScore);
         return;
     }
     ArcadeLeaderboard.UploadLeaderboardScore(new StatusCallback(ArcadeLeaderboard.UploadLeaderboardScoreIl2cppCallback), pchLeaderboardName, pchUserName, nScore);
 }
예제 #4
0
 // Token: 0x06000EC2 RID: 3778 RVA: 0x0005DF88 File Offset: 0x0005C188
 public static void IsReady(StatusCallback callback)
 {
     if (callback == null)
     {
         throw new InvalidOperationException("callback == null");
     }
     ArcadeLeaderboard.isReadyIl2cppCallback = new StatusCallback(callback.Invoke);
     Api.InternalStatusCallbacks.Add(new StatusCallback(ArcadeLeaderboard.IsReadyIl2cppCallback));
     if (IntPtr.Size == 8)
     {
         ArcadeLeaderboard.IsReady_64(new StatusCallback(ArcadeLeaderboard.IsReadyIl2cppCallback));
         return;
     }
     ArcadeLeaderboard.IsReady(new StatusCallback(ArcadeLeaderboard.IsReadyIl2cppCallback));
 }
예제 #5
0
 // Token: 0x06000EC4 RID: 3780 RVA: 0x0005E004 File Offset: 0x0005C204
 public static void DownloadLeaderboardScores(StatusCallback callback, string pchLeaderboardName, ArcadeLeaderboard.LeaderboardTimeRange eLeaderboardDataTimeRange, int nCount)
 {
     if (callback == null)
     {
         throw new InvalidOperationException("callback == null");
     }
     ArcadeLeaderboard.downloadLeaderboardScoresIl2cppCallback = new StatusCallback(callback.Invoke);
     Api.InternalStatusCallbacks.Add(new StatusCallback(ArcadeLeaderboard.DownloadLeaderboardScoresIl2cppCallback));
     eLeaderboardDataTimeRange = ArcadeLeaderboard.LeaderboardTimeRange.AllTime;
     if (IntPtr.Size == 8)
     {
         ArcadeLeaderboard.DownloadLeaderboardScores_64(new StatusCallback(ArcadeLeaderboard.DownloadLeaderboardScoresIl2cppCallback), pchLeaderboardName, (ELeaderboardDataTimeRange)eLeaderboardDataTimeRange, nCount);
         return;
     }
     ArcadeLeaderboard.DownloadLeaderboardScores(new StatusCallback(ArcadeLeaderboard.DownloadLeaderboardScoresIl2cppCallback), pchLeaderboardName, (ELeaderboardDataTimeRange)eLeaderboardDataTimeRange, nCount);
 }
예제 #6
0
        // Token: 0x06000EC7 RID: 3783 RVA: 0x0005E0FC File Offset: 0x0005C2FC
        public static Leaderboard GetLeaderboardScore(int index)
        {
            LeaderboardEntry_t leaderboardEntry_t;

            leaderboardEntry_t.m_nGlobalRank = 0;
            leaderboardEntry_t.m_nScore      = 0;
            leaderboardEntry_t.m_pUserName   = "";
            if (IntPtr.Size == 8)
            {
                ArcadeLeaderboard.GetLeaderboardScore_64(index, ref leaderboardEntry_t);
            }
            else
            {
                ArcadeLeaderboard.GetLeaderboardScore(index, ref leaderboardEntry_t);
            }
            return(new Leaderboard
            {
                Rank = leaderboardEntry_t.m_nGlobalRank,
                Score = leaderboardEntry_t.m_nScore,
                UserName = leaderboardEntry_t.m_pUserName
            });
        }
예제 #7
0
 private static void UploadLeaderboardScoreIl2cppCallback(int errorCode)
 {
     ArcadeLeaderboard.uploadLeaderboardScoreIl2cppCallback(errorCode);
 }
예제 #8
0
 private static void DownloadLeaderboardScoresIl2cppCallback(int errorCode)
 {
     ArcadeLeaderboard.downloadLeaderboardScoresIl2cppCallback(errorCode);
 }
예제 #9
0
 private static void IsReadyIl2cppCallback(int errorCode)
 {
     ArcadeLeaderboard.isReadyIl2cppCallback(errorCode);
 }