larsiusprime / SteamWrap

Haxe native extension for the Steam API
MIT License
106 stars 44 forks source link

Leaderboard Features #8

Closed nospoone closed 5 years ago

nospoone commented 8 years ago

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.

larsiusprime commented 7 years ago

Sorry for neglecting this! I'll tyr to merge it after I do the steam cloud stuff.

nospoone commented 7 years ago

No problem, I'll keep an eye out to see if they collide!

larsiusprime commented 5 years ago

@nospoone Better late than never?