Combu
3.2.2
Unity API Documentation
|
Public Member Functions | |
Leaderboard (string jsonString) | |
virtual void | FromJson (string jsonString) |
Initialize the object from a JSON formatted string. More... | |
void | SetUserFilter (string[] userIDs) |
Sets the user filter. More... | |
void | SetGroupFilter (long groupId) |
void | LoadScores (Action< bool > callback) |
Loads the scores. More... | |
virtual void | LoadScoresByUser (User user, eLeaderboardInterval interval, int limit, Action< Score, int, string > callback) |
virtual void | LoadScoresByUser (long userId, eLeaderboardInterval interval, int limit, Action< Score, int, string > callback) |
virtual void | LoadScoresByUser (string userName, eLeaderboardInterval interval, int limit, Action< Score, int, string > callback) |
virtual void | LoadScoreByUser (User user, eLeaderboardInterval interval, int limit, Action< Score, int, string > callback) |
Loads the scores of a user on this leaderboard. More... | |
virtual void | LoadScoreByUser (long userId, eLeaderboardInterval interval, int limit, Action< Score, int, string > callback) |
Loads the scores by user id. More... | |
virtual void | LoadScoreByUser (string userName, eLeaderboardInterval interval, int limit, Action< Score, int, string > callback) |
Loads the scores by userName. More... | |
Static Public Member Functions | |
static void | Load (string leaderboardId, Action< Leaderboard, string > callback) |
Load the specified leaderboardId. More... | |
static void | Load< T > (string leaderboardId, Action< Leaderboard, string > callback) |
Load the specified leaderboardId. More... | |
static void | LoadScoresByUser (User user, eLeaderboardInterval interval, Action< Score[], string > callback) |
Loads the scores of a user. More... | |
Public Attributes | |
bool | highestScorePerPlayer |
bool | sumScoresPerPlayer |
Protected Member Functions | |
void | LoadScoreByUser (long userId, string userName, eLeaderboardInterval interval, int limit, Action< Score, int, string > callback) |
Loads the scores by user. More... | |
Properties | |
bool | loading [get] |
string | id [get, set] |
string | code [get, set] |
UserScope | userScope [get, set] |
Range | range [get, set] |
TimeScope | timeScope [get, set] |
eLeaderboardTimeScope | customTimescope [get, set] |
IScore | localUserScore [get] |
uint | maxRange [get] |
IScore[] | scores [get] |
string | title [get] |
string | description [get] |
|
virtual |
Initialize the object from a JSON formatted string.
jsonString | Json string. |
|
static |
Load the specified leaderboardId.
leaderboardId | Leaderboard identifier. |
callback | Callback. |
|
static |
Load the specified leaderboardId.
leaderboardId | Leaderboard identifier. |
callback | Callback. |
T | The 1st type parameter. |
T | : | Leaderboard | |
T | : | new() |
|
virtual |
Loads the scores by user id.
userId | User identifier. |
interval | Interval. |
limit | Limit. |
callback | Callback. |
|
protected |
|
virtual |
Loads the scores by userName.
userName | User name. |
interval | Interval. |
limit | Limit. |
callback | Callback. |
|
virtual |
Loads the scores of a user on this leaderboard.
user | User. |
interval | Interval. |
callback | Callback. |
void Combu.Leaderboard.LoadScores | ( | Action< bool > | callback | ) |
Loads the scores.
callback | Callback. |
|
static |
Loads the scores of a user.
user | User. |
interval | Interval. |
callback | Callback. |
void Combu.Leaderboard.SetUserFilter | ( | string[] | userIDs | ) |
Sets the user filter.
userIDs | User I ds. |