Changelog
All notable changes to this package will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
[2.0.0] - 2023-10-06
- Optional object
metadata
in all score-fetching methods. If populated, the object will be stored alongside the score. - Optional boolean
includeMetadata
in all score-fetching methods. If true, stored metadata for scores will be returned as part of theLeaderboardEntry
. - Optional integer
limit
onGetVersionsAsync
method. If set, only the most recentlimit
number of archived versions will be returned. GetVersionsAsync
now returns stringversionId
(the current version of the leaderboard) and inttotalArchivedVersions
(the total number of archived leaderboard versions stored).- Optional string
versionId
on theAddPlayerScoreAsync
method. If set, the versionId will be compared to the current live leaderboard versionId. If they do not match, the score will not be submitted. - Editor support for Config-as-Code.
[1.0.0] - 2023-02-20
Major release of the Leaderboards SDK, containing some added documentation and changes to the names, parameters, and namespace of the public interface.
Changed
- Added XML documentation to service methods.
- Updated the signature of service methods:
- Renamed service methods to omit repetitive "Leaderboards".
- Wrapped optional parameters in options objects instead of specifying them directly.
- Service methods are now directly on
LeaderboardsService.Instance
, instead ofLeaderboardsService.Instance.LeaderboardsApi
.
[0.3.0-preview] - 2023-02-17
Incremental release of the Leaderboards SDK, enabling the return of a player entry on score submission, new support for Tiers, and additional archived leaderboard functionality.
New Features
AddLeaderboardPlayerScoreAsync
updated to return theLeaderboardEntry
stored for the player, if it is returned by the service. A service update to enable this functionality will shortly follow this release.GetLeaderboardScoresByTierAsync
andGetLeaderboardVersionScoresByTierAsync
added, allowing players to retrieve only the subset of the leaderboard specified by the given tier, for either live or archived leaderboard versions. The rank returned by this method will be scoped to the tier requested.GetLeaderboardVersionPlayerRangeAsync
andGetLeaderboardVersionScoresByPlayerIdsAsync
, extending existing live leaderboard functionality to archived leaderboard versions.
[0.2.1-preview] - 2023-01-26
Incremental release of the Leaderboards SDK, containing new return values and improved error handling
New Features
- The
GetLeaderboardVersionsAsync
response now includes anextReset
field, which shows the next time that a leaderboard will reset if the leaderboard has a scheduled reset configuration. - When a request is made to retrieve leaderboard scores from a bucketed leaderboard, and the player has not yet submitted a score (and therefore has not been assigned a bucket), the error response will now include
ScoreSubmissionRequired
in theReason
field.
[0.2.0-preview] - 2022-11-02
Incremental release of the Leaderboards SDK, containing new features and routing to updated API endpoints.
New Features
- Ability to retrieve scores based on a list of player IDs, enabling features such as Friends leaderboards.
- Ability to retrieve a range of scores around the signed in player, for easier player-scoped leaderboards.
- All methods updated to call the v1beta1 endpoints on the Leaderboards service rather than the Alpha v0 endpoints.
Known Issues
- There is no client-side validation other than type protection.
[0.1.0-preview] - 2022-10-07
This is the initial release of the Leaderboards SDK with improvements to the auto-generated code.
New Features
- Auto-injection of ProjectID and PlayerID matching other SDKs.
- Submit and retrieve player scores/ranks.
- Retrieve Leaderboard scores.
- Retrieve a list of Leaderboard versions and scores from Leaderboard versions.
Known Issues
- There is no client-side validation other than type protection.
[0.0.1-preview] - 2022-06-01
- Generated this version of the API client