For each player, I save the following values in one json Player ReadOnlyData key/value pair:
- Total levels played: xx
- Total achievements: xx
- Total points: xx
- Best rank in a leaderboard: xx
- playing time: xx
- Total player bans: xx
I know that I cannot get Player ReadOnlyData when I call PlayFabClientAPI.GetLeaderboard. But would it be possible to get these values with GetLeaderboard if I store them differently(not in ReadOnlyData)?
Where should I store the values so that I can get them for each player when I call GetLeaderboard?
Would it be possible to set "MaxResultsCount = 100" if I would return these values for each player with GetLeaderboard or would this be too much data that needs to be returned?
Right now, I only set "MaxResultsCount = 20" to return the 20 best players:
var result = await PlayFabClientAPI.GetLeaderboardAsync(new GetLeaderboardRequest() { StatisticName = name, MaxResultsCount = 20, ProfileConstraints = new PlayFab.ClientModels.PlayerProfileViewConstraints() { ShowDisplayName = true } foreach (var entry in result.Result.Leaderboard) { Console.WriteLine($"{entry.Position + 1} {entry.Profile.DisplayName} {entry.StatValue}"); } });