public static extern ELeaderboardSortMethod ISteamUserStats_GetLeaderboardSortMethod(SteamLeaderboard_t hSteamLeaderboard);
public static SteamAPICall_t UploadLeaderboardScore(SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int nScore, int[] pScoreDetails, int cScoreDetailsCount) { InteropHelp.TestIfAvailableClient(); return (SteamAPICall_t)NativeMethods.ISteamUserStats_UploadLeaderboardScore(hSteamLeaderboard, eLeaderboardUploadScoreMethod, nScore, pScoreDetails, cScoreDetailsCount); }
public LeaderboardHandle(SteamLeaderboard_t handle) { m_handle = handle; }
public static string GetLeaderboardName(SteamLeaderboard_t hSteamLeaderboard) { InteropHelp.TestIfAvailableClient(); return InteropHelp.PtrToStringUTF8(NativeMethods.ISteamUserStats_GetLeaderboardName(hSteamLeaderboard)); }
public static SteamAPICall_t DownloadLeaderboardEntries(SteamLeaderboard_t hSteamLeaderboard, ELeaderboardDataRequest eLeaderboardDataRequest, int nRangeStart, int nRangeEnd) { InteropHelp.TestIfAvailableClient(); return (SteamAPICall_t)NativeMethods.ISteamUserStats_DownloadLeaderboardEntries(hSteamLeaderboard, eLeaderboardDataRequest, nRangeStart, nRangeEnd); }
public static extern ulong ISteamUserStats_DownloadLeaderboardEntriesForUsers(SteamLeaderboard_t hSteamLeaderboard, [In, Out] CSteamID[] prgUsers, int cUsers);
public static extern ulong ISteamUserStats_AttachLeaderboardUGC(SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC);
internal LeaderboardSort GetLeaderboardSortMethod(SteamLeaderboard_t hSteamLeaderboard) { var returnValue = _GetLeaderboardSortMethod(Self, hSteamLeaderboard); return(returnValue); }
private static extern LeaderboardDisplay _GetLeaderboardDisplayType(IntPtr self, SteamLeaderboard_t hSteamLeaderboard);
internal int GetLeaderboardEntryCount(SteamLeaderboard_t hSteamLeaderboard) { var returnValue = _GetLeaderboardEntryCount(Self, hSteamLeaderboard); return(returnValue); }
private static extern LeaderboardSort _GetLeaderboardSortMethod(IntPtr self, SteamLeaderboard_t hSteamLeaderboard);
private static extern int _GetLeaderboardEntryCount(IntPtr self, SteamLeaderboard_t hSteamLeaderboard);
internal string GetLeaderboardName(SteamLeaderboard_t hSteamLeaderboard) { var returnValue = _GetLeaderboardName(Self, hSteamLeaderboard); return(returnValue); }
private static extern Utf8StringPointer _GetLeaderboardName(IntPtr self, SteamLeaderboard_t hSteamLeaderboard);
public static extern ELeaderboardDisplayType ISteamUserStats_GetLeaderboardDisplayType(SteamLeaderboard_t hSteamLeaderboard);
internal LeaderboardDisplay GetLeaderboardDisplayType(SteamLeaderboard_t hSteamLeaderboard) { var returnValue = _GetLeaderboardDisplayType(Self, hSteamLeaderboard); return(returnValue); }
public static extern ulong ISteamUserStats_DownloadLeaderboardEntries(SteamLeaderboard_t hSteamLeaderboard, ELeaderboardDataRequest eLeaderboardDataRequest, int nRangeStart, int nRangeEnd);
private static extern SteamAPICall_t _DownloadLeaderboardEntries(IntPtr self, SteamLeaderboard_t hSteamLeaderboard, LeaderboardDataRequest eLeaderboardDataRequest, int nRangeStart, int nRangeEnd);
public static extern ulong ISteamUserStats_UploadLeaderboardScore(SteamLeaderboard_t hSteamLeaderboard, ELeaderboardUploadScoreMethod eLeaderboardUploadScoreMethod, int nScore, [In, Out] int[] pScoreDetails, int cScoreDetailsCount);
private void download(SteamLeaderboard_t leaderboard) { #if STEAMWORKS this.globalLeaderboardDownloadCall = new CallResult<LeaderboardScoresDownloaded_t>((downloaded, downloadedFailure) => { this.globalLeaderboardDownloadCall = null; if (downloadedFailure) this.OnLeaderboardError.Execute(); else { if (downloaded.m_cEntryCount == 0) { // We're not ranked // Get the top global list this.globalLeaderboardDownloadCall = new CallResult<LeaderboardScoresDownloaded_t>((downloaded2, downloadedFailure2) => { if (downloadedFailure2) this.OnLeaderboardError.Execute(); else { this.globalScoresDownloaded = true; this.globalScores = downloaded2; this.checkLeaderboardsDownloaded(); } }); this.globalLeaderboardDownloadCall.Set(SteamUserStats.DownloadLeaderboardEntries(leaderboard, ELeaderboardDataRequest.k_ELeaderboardDataRequestGlobal, 0, this.before + this.after)); } else { this.globalScoresDownloaded = true; this.globalScores = downloaded; this.checkLeaderboardsDownloaded(); } } }); this.globalLeaderboardDownloadCall.Set(SteamUserStats.DownloadLeaderboardEntries(leaderboard, ELeaderboardDataRequest.k_ELeaderboardDataRequestGlobalAroundUser, -this.before, this.after)); this.friendLeaderboardDownloadCall = new CallResult<LeaderboardScoresDownloaded_t>((downloaded, downloadedFailure) => { this.friendLeaderboardDownloadCall = null; if (downloadedFailure) this.OnLeaderboardError.Execute(); else { this.friendScoresDownloaded = true; this.friendScores = downloaded; this.checkLeaderboardsDownloaded(); } }); this.friendLeaderboardDownloadCall.Set(SteamUserStats.DownloadLeaderboardEntries(leaderboard, ELeaderboardDataRequest.k_ELeaderboardDataRequestFriends, -this.friendsBefore, this.friendsAfter)); #endif }
public static int GetLeaderboardEntryCount(SteamLeaderboard_t hSteamLeaderboard) { InteropHelp.TestIfAvailableClient(); return NativeMethods.ISteamUserStats_GetLeaderboardEntryCount(hSteamLeaderboard); }
private void OnLeaderboardFindResult(LeaderboardFindResult_t pCallback, bool bIOFailure) { Debug.Log("[" + LeaderboardFindResult_t.k_iCallback + " - LeaderboardFindResult] - " + pCallback.m_hSteamLeaderboard + " -- " + pCallback.m_bLeaderboardFound); if (pCallback.m_bLeaderboardFound != 0) { m_SteamLeaderboard = pCallback.m_hSteamLeaderboard; } }
public static ELeaderboardSortMethod GetLeaderboardSortMethod(SteamLeaderboard_t hSteamLeaderboard) { InteropHelp.TestIfAvailableClient(); return NativeMethods.ISteamUserStats_GetLeaderboardSortMethod(hSteamLeaderboard); }
public static extern IntPtr ISteamUserStats_GetLeaderboardName(SteamLeaderboard_t hSteamLeaderboard);
public static SteamAPICall_t DownloadLeaderboardEntriesForUsers(SteamLeaderboard_t hSteamLeaderboard, CSteamID[] prgUsers, int cUsers) { InteropHelp.TestIfAvailableClient(); return (SteamAPICall_t)NativeMethods.ISteamUserStats_DownloadLeaderboardEntriesForUsers(hSteamLeaderboard, prgUsers, cUsers); }
public static extern int ISteamUserStats_GetLeaderboardEntryCount(SteamLeaderboard_t hSteamLeaderboard);
public static SteamAPICall_t AttachLeaderboardUGC(SteamLeaderboard_t hSteamLeaderboard, UGCHandle_t hUGC) { InteropHelp.TestIfAvailableClient(); return (SteamAPICall_t)NativeMethods.ISteamUserStats_AttachLeaderboardUGC(hSteamLeaderboard, hUGC); }
public int NumEntries(SteamLeaderboard_t hSteamLeaderboard) { return(SteamUserStats.GetLeaderboardEntryCount(hSteamLeaderboard)); }