You can use achievements and leaderboards within Google Play Games.
More...
You can use achievements and leaderboards within Google Play Games.
If it is not connected to Google Play Games, it will try to connect automatically when calling API.
It can be used independently regardless of AuthV4 Connect.
Even if automatic connection is made, it is not connected with the current playerId.
Created by hife on 2017. 6. 7.
- Author
- hife
- Since
- 4.3.0
◆ onAchievementsResult
Google Play Games 업적 UI 노출 result handler.
- Parameters
-
- See also
- ResultAPI
◆ onGooglePlayerIdResult
Google Player Id 및 Auth Code 반환 result handler.
- Parameters
-
result | API 호출 결과. |
googlePlayerId | Google PlayerId |
authCode | Auth Code |
◆ onLeaderboardsResult
Google Play Games 리더보드 UI 노출 result handler.
- Parameters
-
- See also
- ResultAPI
◆ achievementsIncrement() [1/2]
static void ProviderGoogle::achievementsIncrement |
( |
const std::string |
incrementalAchievementId, |
|
|
const int |
argValue |
|
) |
| |
|
static |
It increases achievement figures.
Achievement figures is added as much as value set by the API call, not by setting.
If the total sum is Max, the achievement is automatically accomplished.
- Parameters
-
incrementalAchievementId | incrementalAchievementId |
value | value |
◆ achievementsIncrement() [2/2]
static void ProviderGoogle::achievementsIncrement |
( |
const std::string |
incrementalAchievementId, |
|
|
const int |
argValue, |
|
|
onAchievementsResult |
listener |
|
) |
| |
|
static |
It increases achievement figures.
Achievement figures is added as much as value set by the API call, not by setting.
If the total sum is Max, the achievement is automatically accomplished.
- Parameters
-
incrementalAchievementId | incrementalAchievementId |
value | value |
listener | GoogleAchievementsListener |
◆ achievementsReveal() [1/2]
static void ProviderGoogle::achievementsReveal |
( |
const std::string |
achievementId | ) |
|
|
static |
It show hidden achievements.
Achievements are only revealed at 0%, not achieved.
- Parameters
-
achievementId | achievementId to reveal |
◆ achievementsReveal() [2/2]
static void ProviderGoogle::achievementsReveal |
( |
const std::string |
achievementId, |
|
|
onAchievementsResult |
listener |
|
) |
| |
|
static |
It show hidden achievements.
Achievements are only revealed at 0%, not achieved.
- Parameters
-
achievementId | achievementId to reveal |
listener | GoogleAchievementsListener |
◆ achievementsUnlock() [1/2]
static void ProviderGoogle::achievementsUnlock |
( |
const std::string |
achievementId | ) |
|
|
static |
It achieve achievements.
Whether hidden or open, achievement is achieved at 100%.
- Parameters
-
achievementId | achievementId to achieve |
◆ achievementsUnlock() [2/2]
static void ProviderGoogle::achievementsUnlock |
( |
const std::string |
achievementId, |
|
|
onAchievementsResult |
listener |
|
) |
| |
|
static |
It achieve achievements.
Whether hidden or open, achievement is achieved at 100%.
- Parameters
-
achievementId | achievementId to achieve |
listener | GoogleAchievementsListener |
◆ getGooglePlayerId()
It get Google PlayerId and authCode.
- Parameters
-
listener | onGooglePlayerIdResult |
◆ leaderboardsSubmitScore() [1/2]
static void ProviderGoogle::leaderboardsSubmitScore |
( |
const std::string |
leaderboardId, |
|
|
const long long |
score |
|
) |
| |
|
static |
It update the leaderboard score.
The score corresponding to the leaderboardId is updated with the score value.
- Parameters
-
leaderboardId | leaderboardId |
score | score |
◆ leaderboardsSubmitScore() [2/2]
static void ProviderGoogle::leaderboardsSubmitScore |
( |
const std::string |
leaderboardId, |
|
|
const long long |
score, |
|
|
onLeaderboardsResult |
listener |
|
) |
| |
|
static |
It update the leaderboard score.
The score corresponding to the leaderboardId is updated with the score value.
- Parameters
-
leaderboardId | leaderboardId |
score | score |
listener | GoogleLeaderboardsListener |
◆ showAchievements()
It shows the Google achievement UI.
- Parameters
-
listener | GoogleAchievementsListener |
◆ showLeaderboard()
It shows Google Leaderboard UI.
- Parameters
-
listener | GoogleLeaderboardsListener |