![]() |
Combu
3.2.2
Unity API Documentation
|
Combu Platform implementation of Unity built-in Social interfaces (ISocialPlatform). More...
Public Member Functions | |
| virtual void | Authenticate (ILocalUser user, System.Action< bool > callback) |
| Authenticates the user. More... | |
| virtual void | Authenticate (string username, string password, System.Action< bool, string > callback) |
| Authenticates the user with specified username and password. More... | |
| virtual void | Authenticate< T > (string username, string password, System.Action< bool, string > callback) |
| Authenticates the user with specified username and password using the specified profile class. More... | |
| virtual void | Authenticate (ILocalUser user, System.Action< bool, string > callback) |
| Authenticate the specified user. More... | |
| virtual void | LoadUsers (string[] userIDs, System.Action< IUserProfile[]> callback) |
| Loads the users by Id. More... | |
| virtual void | ReportProgress (string achievementId, double progress, System.Action< bool > callback) |
| Reports the progress of an Achievement expressed as percentage. The progress will be multiplied by 100.0 and finally rounded to int. More... | |
| virtual void | ReportProgress (string achievementId, int progress, System.Action< bool > callback) |
| Reports the progress of an Achievement. More... | |
| virtual void | LoadAchievementDescriptions (System.Action< IAchievementDescription[]> callback) |
| Loads the achievement descriptions. More... | |
| virtual void | LoadAchievements (System.Action< IAchievement[]> callback) |
| Loads the achievements. More... | |
| virtual void | LoadAchievements< T > (System.Action< T[]> callback) |
| Loads the achievements. More... | |
| virtual IAchievement | CreateAchievement () |
| Creates the achievement. More... | |
| virtual void | ReportScore (long score, string board, System.Action< bool > callback) |
| Reports the score of a Leaderboard. More... | |
| virtual void | ReportScore (string score, string board, System.Action< bool > callback) |
| Reports the score of a Leaderboard. More... | |
| virtual void | ReportScore (string score, string board, string username, System.Action< bool > callback) |
| Reports the score of a Leaderboard. More... | |
| virtual void | LoadScores (string leaderboardID, System.Action< IScore[]> callback) |
| Loads the scores of a Leaderboard. More... | |
| virtual void | LoadScores (string leaderboardID, int page, int countPerPage, System.Action< IScore[]> callback) |
| Loads the scores of a Leaderboard. More... | |
| void | LoadScores (string leaderboardID, TimeScope timeScope, int page, int countPerPage, System.Action< IScore[]> callback) |
| Loads the scores of a Leaderboard. More... | |
| virtual ILeaderboard | CreateLeaderboard () |
| Creates the leaderboard. More... | |
| virtual void | ShowAchievementsUI () |
| Shows the achievements UI. Requires achievementUIObject and eventually achievementUIFunction set in order to work. More... | |
| virtual void | ShowLeaderboardUI () |
| Shows the leaderboard UI. Requires leaderboardUIObject and eventually leaderboardUIFunction set in order to work. More... | |
| virtual void | LoadFriends (ILocalUser user, System.Action< bool > callback) |
| Loads the friends of localUser. More... | |
| virtual void | LoadScores (ILeaderboard board, System.Action< bool > callback) |
| Loads the scores of a Leaderboard. More... | |
| virtual bool | GetLoading (ILeaderboard board) |
| Gets the loading state of a Leaderboard. More... | |
| virtual void | SetLocalUser (User user) |
| Sets the local user. For internal use only (e.g. User.Authenticate), it's not recommended to call this method directly. More... | |
| virtual void | Logout (System.Action callback) |
| Logout localUser. More... | |
| virtual void | LoadScoresByUser (string leaderboardId, User user, eLeaderboardInterval interval, int limit, System.Action< Score, int, string > callback) |
| Loads the scores of a Leaderboard by user. More... | |
Static Public Member Functions | |
| static void | ResetAllAchievements (System.Action< bool > callback) |
| Resets all achievements of localUser. More... | |
Properties | |
| ILocalUser | localUser [get] |
Combu Platform implementation of Unity built-in Social interfaces (ISocialPlatform).
|
virtual |
Authenticates the user.
| user | User. |
| callback | Callback. |
Example of usage:
|
virtual |
Authenticate the specified user.
| user | User. |
| callback | Callback. |
Example of usage:
|
virtual |
Authenticates the user with specified username and password.
| username | Username. |
| password | Password. |
| callback | Callback. |
Example of usage:
|
virtual |
Authenticates the user with specified username and password using the specified profile class.
| username | Username. |
| password | Password. |
| callback | Callback. |
| T | Type of the returned profiles. |
Example of usage:
| T | : | User | |
| T | : | new() |
|
virtual |
Creates the achievement.
Example of usage:
|
virtual |
Creates the leaderboard.
Example of usage:
|
virtual |
Gets the loading state of a Leaderboard.
true, if loading was gotten, false otherwise.| board | Board. |
Example of usage:
|
virtual |
Loads the achievement descriptions.
| callback | Callback. |
Example of usage:
|
virtual |
Loads the achievements.
| callback | Callback. |
Example of usage:
|
virtual |
Loads the achievements.
| callback | Callback. |
| T | The 1st type parameter. |
Example of usage:
| T | : | Achievement | |
| T | : | new() |
|
virtual |
Loads the friends of localUser.
| user | User. |
| callback | Callback. |
Example of usage:
|
virtual |
Loads the scores of a Leaderboard.
| board | Board. |
| callback | Callback. |
Example of usage:
|
virtual |
Loads the scores of a Leaderboard.
| leaderboardID | Leaderboard I. |
| page | Page. |
| countPerPage | Count per page. |
| callback | Callback. |
Example of usage:
|
virtual |
Loads the scores of a Leaderboard.
| leaderboardID | Leaderboard I. |
| callback | Callback. |
Example of usage:
| void Combu.CombuPlatform.LoadScores | ( | string | leaderboardID, |
| TimeScope | timeScope, | ||
| int | page, | ||
| int | countPerPage, | ||
| System.Action< IScore[]> | callback | ||
| ) |
Loads the scores of a Leaderboard.
| leaderboardID | Leaderboard identifier. |
| timeScope | Time scope. |
| page | Page. |
| countPerPage | Count per page. |
| callback | Callback. |
|
virtual |
Loads the scores of a Leaderboard by user.
| leaderboardId | Leaderboard identifier. |
| user | User. |
| interval | Interval. |
| callback | Callback. |
Example of usage:
|
virtual |
Loads the users by Id.
| userIDs | User I ds. |
| callback | Callback. |
Example of usage:
|
virtual |
Logout localUser.
| callback | Callback. |
Example of usage:
|
virtual |
Reports the progress of an Achievement expressed as percentage. The progress will be multiplied by 100.0 and finally rounded to int.
| achievementID | Achievement identifier. |
| progress | Progress. |
| callback | Callback. |
Example of usage:
|
virtual |
Reports the progress of an Achievement.
| achievementId | Achievement identifier. |
| progress | Progress. |
| callback | Callback. |
Example of usage:
|
virtual |
Reports the score of a Leaderboard.
| score | Score. |
| board | Board. |
| callback | Callback. |
Example of usage:
|
virtual |
Reports the score of a Leaderboard.
| score | Score. |
| board | Board. |
| username | Username. |
| callback | Callback. |
Example of usage:
|
virtual |
Reports the score of a Leaderboard.
| score | Score. |
| board | Board. |
| callback | Callback. |
Example of usage:
|
static |
Resets all achievements of localUser.
| callback | Callback. |
|
virtual |
Sets the local user. For internal use only (e.g. User.Authenticate), it's not recommended to call this method directly.
| user | User. |
|
virtual |
Shows the achievements UI. Requires achievementUIObject and eventually achievementUIFunction set in order to work.
Example of usage:
|
virtual |
Shows the leaderboard UI. Requires leaderboardUIObject and eventually leaderboardUIFunction set in order to work.
Example of usage: