Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Leaderboards/Statistics API #51

Open
5 of 11 tasks
Structed opened this issue Jun 10, 2022 · 0 comments · May be fixed by #54
Open
5 of 11 tasks

Implement Leaderboards/Statistics API #51

Structed opened this issue Jun 10, 2022 · 0 comments · May be fixed by #54
Assignees
Labels
enhancement New feature or request

Comments

@Structed
Copy link
Owner

Structed commented Jun 10, 2022

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
@Structed Structed self-assigned this Jun 10, 2022
@Structed Structed changed the title Implement Leaderboards API Implement Leaderboards/Statistics API Jun 10, 2022
@Structed Structed linked a pull request Jun 11, 2022 that will close this issue
@Structed Structed added the enhancement New feature or request label Dec 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant