Jump to content
 
Sign in to follow this  
iurii_playsnak

Leaderboards. Local vs. Global? Daily, Weekly, Monthly? How does it work?

Recommended Posts

Hello people,

 

Does anyone know what is the difference between Local and Global data when reading from leaderboard?

Also, how Daily, Weekly and Monthly works?

 

Thanks.

Share this post


Link to post
Share on other sites

Hello   ,

 

Sorry for not getting back to you earlier, please see below in detail.

For the parameters of DownloadLeaderboardScores:

 

public enum LeaderBoardRequestType
{
      GlobalData = Internal.ELeaderboardDataRequest.k_ELeaderboardDataRequestGlobal /* 0 */,
      GlobalDataAroundUser = Internal.ELeaderboardDataRequest.k_ELeaderboardDataRequestGlobalAroundUser /* 1 */,
      LocalData = Internal.ELeaderboardDataRequest.k_ELeaderboardDataRequestLocal /* 2 */,
      LocalDataAroundUser = Internal.ELeaderboardDataRequest.k_ELeaderboardDataRequestLocaleAroundUser /* 3 */,
}

 

public enum LeaderBoardTimeRange
{
     AllTime = Internal.ELeaderboardDataTimeRange.k_ELeaderboardDataScropeAllTime /* 0 */,
     Daily = Internal.ELeaderboardDataTimeRange.k_ELeaderboardDataScropeDaily /* 1 */,
     Weekly = Internal.ELeaderboardDataTimeRange.k_ELeaderboardDataScropeWeekly /* 2 */,
     Monthly = Internal.ELeaderboardDataTimeRange.k_ELeaderboardDataScropeMonthly /* 3 */,
}

 

UserStats.DownloadLeaderboardScores(callback, leadername name,  
                                    LeaderBoardRequestType, LeaderBoardTimeRange, start,end);

 If LeaderBoardRequestType of downloading leaderboard is "GlobalData" , content will get the user ranking data anywhere in the world.

But if it is "LocalData", content will get the user ranking data depending on your location.

And you could also set the LeaderboardTimeRange as AllTime / Daily / Weekly / Monthly to get the user ranking during this period.

Please let me know if you still have further questions. Thanks.

 

 

 

Share this post


Link to post
Share on other sites

Thank you for the response.  I'd still like to know more specifics.  Like what are the regions that local scores are shown by?  I.e. are scores for all of Europe grouped together?  Or just per country? Etc.

 

Also, regarding the weekly, daily and monthly leaderboards, when do these reset?  I.e. what time of day does the daily board reset?  Is it the same time everywhere, or does it depend on timezones?   What day of the week does the weekly board reset?

 

My apologies if there is documentation I have missed that describes this

Share this post


Link to post
Share on other sites

Please sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...