defold / extension-steam

Steamworks SDK integration with Defold
MIT License
25 stars 3 forks source link

Leaderboards #10

Open 8bitskull opened 3 months ago

8bitskull commented 3 months ago

I want to implement a leaderboard!

We already have: steam.user_stats_download_leaderboard_entries() steam.user_stats_get_downloaded_leaderboard_entry()

Please implement:

UPDATE to add this as it is critical to my use case:

(I have players competing in Daily runs so I need to be able to create leaderboards dynamically)

Having reviewed the documentation (https://partner.steamgames.com/doc/features/leaderboards) it's possible others might have a use for these too (however I think UploadLeaderboardScore is the bare minimum and might be enough for my personal use case):

britzl commented 3 months ago

Added user_stats_upload_leaderboard_score() in https://github.com/defold/extension-steam/commit/9dd813a8651843e37da55c8e4ef794c5577757df

britzl commented 3 months ago

Added user_stats_find_or_create_leaderboard() in https://github.com/defold/extension-steam/commit/8eebf80e80f86fb3e87dbcebac874d2f486f5d0c

8bitskull commented 1 week ago

Hi @britzl

Can I please request ISteamUserStats::GetLeaderboardEntryCount? Use case: I want to be able to say "your rank is 12 out of 345".

britzl commented 1 week ago

Sure!

Added user_stats_get_leaderboard_entry_count() in https://github.com/defold/extension-steam/commit/d858fc37995b6a16fe58b46647558f0b79d33e8e