Notifications
Clear all

Load Scores By User

4 Posts
2 Users
0 Reactions
729 Views
(@graham)
Posts: 14
Eminent Member
Topic starter
 

Can you please provide a basic example of using "LoadScoresByUser()"?

 
Posted : 16/04/2018 6:51 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

You must currently pass an object User to the function (for example CombuManager.localUser or a user loaded by other ways like from User.Load or LoadFriends etc). I'll add the possibility to specify a userId or userName in the next update.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 16/04/2018 8:00 pm
(@graham)
Posts: 14
Eminent Member
Topic starter
 

By userName would be fantastic. Will this be accessible anonymously without a user being logged in if it's an anonymous leaderboard?

 
Posted : 16/04/2018 8:59 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Graham said
By userName would be fantastic. Will this be accessible anonymously without a user being logged in if it's an anonymous leaderboard?  

I've implemented other 2 overloads to the method for the next update, one accepts user's id (as long) and the other accepts the username. Of course loading by id (in any class) boosts performance since it's the primary key, so it's ever preferred if you have access to it.

The actions of leaderboards don't require user being logged, except for ReportScore of course.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 17/04/2018 11:37 pm
Share: