This PR adds the ability to retrieve scores other than your own via Steam.downloadLeaderboardScore(). You specify (via optional arguments - this makes it backwards compatible) the type of download and the number you want to have. To accommodate this, Steam.whenLeaderboardScoreDownloaded now returns Array<LeaderboardScore> instead of a single LeaderboardScore. The LeaderboardScore class has had its signature changed, to add support for the name of whom this score belongs to.
I've tested this the best I can (with ~6 scores across 3 leaderboards), although I can't thoroughly test it since Valve doesn't allow test scores to be submitted.
This PR adds the ability to retrieve scores other than your own via
Steam.downloadLeaderboardScore()
. You specify (via optional arguments - this makes it backwards compatible) the type of download and the number you want to have. To accommodate this,Steam.whenLeaderboardScoreDownloaded
now returnsArray<LeaderboardScore>
instead of a singleLeaderboardScore
. TheLeaderboardScore
class has had its signature changed, to add support for the name of whom this score belongs to.I've tested this the best I can (with ~6 scores across 3 leaderboards), although I can't thoroughly test it since Valve doesn't allow test scores to be submitted.