コード例 #1
0
 // Token: 0x060049B3 RID: 18867 RVA: 0x0018A974 File Offset: 0x00188D74
 public static int IsReady(StatusCallback callback)
 {
     if (callback == null)
     {
         throw new InvalidOperationException("callback == null");
     }
     Viveport.Internal.StatusCallback statusCallback = new Viveport.Internal.StatusCallback(callback.Invoke);
     Api.InternalStatusCallbacks.Add(statusCallback);
     return(Viveport.Internal.UserStats.IsReady(statusCallback));
 }
コード例 #2
0
 // Token: 0x060049BE RID: 18878 RVA: 0x0018AABC File Offset: 0x00188EBC
 public static int DownloadLeaderboardScores(StatusCallback callback, string pchLeaderboardName, UserStats.LeaderBoardRequestType eLeaderboardDataRequest, UserStats.LeaderBoardTimeRange eLeaderboardDataTimeRange, int nRangeStart, int nRangeEnd)
 {
     if (callback == null)
     {
         throw new InvalidOperationException("callback == null");
     }
     Viveport.Internal.StatusCallback statusCallback = new Viveport.Internal.StatusCallback(callback.Invoke);
     Api.InternalStatusCallbacks.Add(statusCallback);
     return(Viveport.Internal.UserStats.DownloadLeaderboardScores(statusCallback, pchLeaderboardName, (ELeaderboardDataRequest)eLeaderboardDataRequest, (ELeaderboardDataTimeRange)eLeaderboardDataTimeRange, nRangeStart, nRangeEnd));
 }
コード例 #3
0
 // Token: 0x060049BF RID: 18879 RVA: 0x0018AB00 File Offset: 0x00188F00
 public static int UploadLeaderboardScore(StatusCallback callback, string pchLeaderboardName, int nScore)
 {
     if (callback == null)
     {
         throw new InvalidOperationException("callback == null");
     }
     Viveport.Internal.StatusCallback statusCallback = new Viveport.Internal.StatusCallback(callback.Invoke);
     Api.InternalStatusCallbacks.Add(statusCallback);
     return(Viveport.Internal.UserStats.UploadLeaderboardScore(statusCallback, pchLeaderboardName, nScore));
 }
コード例 #4
0
 public static void UploadLeaderboardScore(StatusCallback callback, string pchLeaderboardName, string pchUserName, int nScore)
 {
     if (callback == null)
     {
         throw new InvalidOperationException("callback == null");
     }
     Viveport.Internal.StatusCallback uploadLeaderboardScoreCB = new Viveport.Internal.StatusCallback(callback.Invoke);
     Api.InternalStatusCallbacks.Add(uploadLeaderboardScoreCB);
     Viveport.Internal.ArcadeLeaderboard.UploadLeaderboardScore(uploadLeaderboardScoreCB, pchLeaderboardName, pchUserName, nScore);
 }
コード例 #5
0
 public static void IsReady(StatusCallback callback)
 {
     if (callback == null)
     {
         throw new InvalidOperationException("callback == null");
     }
     Viveport.Internal.StatusCallback IsReadyCallback = new Viveport.Internal.StatusCallback(callback.Invoke);
     Api.InternalStatusCallbacks.Add(IsReadyCallback);
     Viveport.Internal.ArcadeLeaderboard.IsReady(IsReadyCallback);
 }
コード例 #6
0
 public static int Shutdown(StatusCallback callback)
 {
     if (callback == null)
     {
         throw new InvalidOperationException("callback == null");
     }
     Viveport.Internal.StatusCallback initCallback = new Viveport.Internal.StatusCallback(callback.Invoke);
     Api.InternalStatusCallbacks.Add(initCallback);
     return(Viveport.Internal.Api.Shutdown(initCallback));
 }
コード例 #7
0
 public static int Init(StatusCallback callback, string appId)
 {
     if (callback == null || string.IsNullOrEmpty(appId))
     {
         throw new InvalidOperationException("callback == null || string.IsNullOrEmpty(appId)");
     }
     Viveport.Internal.StatusCallback initCallback = new Viveport.Internal.StatusCallback(callback.Invoke);
     Api.InternalStatusCallbacks.Add(initCallback);
     return(Viveport.Internal.Api.Init(initCallback, appId));
 }
コード例 #8
0
 public static void DownloadLeaderboardScores(StatusCallback callback, string pchLeaderboardName, ArcadeLeaderboard.LeaderboardTimeRange eLeaderboardDataTimeRange, int nCount)
 {
     if (callback == null)
     {
         throw new InvalidOperationException("callback == null");
     }
     Viveport.Internal.StatusCallback downloadLeaderboardScoresCB = new Viveport.Internal.StatusCallback(callback.Invoke);
     Api.InternalStatusCallbacks.Add(downloadLeaderboardScoresCB);
     eLeaderboardDataTimeRange = ArcadeLeaderboard.LeaderboardTimeRange.AllTime;
     Viveport.Internal.ArcadeLeaderboard.DownloadLeaderboardScores(downloadLeaderboardScoresCB, pchLeaderboardName, (ELeaderboardDataTimeRange)eLeaderboardDataTimeRange, nCount);
 }