Skip to content

Implement Leaderboards/Statistics API #51

@Structed

Description

@Structed

Implement API to read & update leaderboard/statistics.

Docs: https://docs.microsoft.com/en-us/gaming/playfab/features/data/playerdata/using-player-statistics

  • Create example scene to increase score

  • Create example scene to retrieve leaderboard

  • Implement new requests

    • Get Friend Leaderboard
      Retrieves a list of ranked friends of the current player for the given statistic, starting from the indicated point in the leaderboard

    • Get Friend Leaderboard Around Player
      Retrieves a list of ranked friends of the current player for the given statistic, centered on the requested PlayFab user. If PlayFabId is empty or null will ret...

    • Get Leaderboard
      Retrieves a list of ranked users for the given statistic, starting from the indicated point in the leaderboard

    • Get Leaderboard Around Player
      Retrieves a list of ranked users for the given statistic, centered on the requested player. If PlayFabId is empty or null will return currently logged in user.

    • Get Player Statistics
      Retrieves the indicated statistics (current version and values for all statistics, if none are specified), for the local player.

    • Get Player Statistic Versions
      Retrieves the information on the available versions of the specified statistic.

    • Update Player Statistics
      Updates the values of the specified title-specific statistics for the user. By default, clients are not permitted to update statistics. Developers may override ...

  • Update documentation

Additional notes:

  • Leaderboards need to be manually created in the Game Manager
  • Leaderboard writing will likely need to be enabled for clients via Policy

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions