mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-02-26 21:41:19 +03:00
Added GetScoresForUsersAsync (DownloadLeaderboardEntriesForUsers)
This commit is contained in:
parent
d080548c20
commit
b8df8aff4a
@ -59,6 +59,21 @@ namespace Steamworks.Data
|
|||||||
return r.Value.Result;
|
return r.Value.Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Fetches leaderboard entries for an arbitrary set of users on a specified leaderboard.
|
||||||
|
/// </summary>
|
||||||
|
public async Task<LeaderboardEntry[]> GetScoresForUsersAsync( SteamId[] users )
|
||||||
|
{
|
||||||
|
if ( users == null || users.Length == 0 )
|
||||||
|
return null;
|
||||||
|
|
||||||
|
var r = await SteamUserStats.Internal.DownloadLeaderboardEntriesForUsers( Id, users, users.Length );
|
||||||
|
if ( !r.HasValue )
|
||||||
|
return null;
|
||||||
|
|
||||||
|
return await LeaderboardResultToEntries( r.Value );
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used to query for a sequential range of leaderboard entries by leaderboard Sort.
|
/// Used to query for a sequential range of leaderboard entries by leaderboard Sort.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user