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.
◆ AchievementsIncrement()
static void FHiveProviderGoogle::AchievementsIncrement |
( |
const FString & |
AchievementId, |
|
|
int32 |
Value, |
|
|
const FHiveProviderGoogleOnAchievementsDelegate & |
Delegate |
|
) |
| |
|
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
-
AchievementId | incremental AchievementId |
Value | value |
Delegate | FHiveProviderGoogleOnAchievementsDelegate |
◆ AchievementsReveal()
static void FHiveProviderGoogle::AchievementsReveal |
( |
const FString & |
AchievementId, |
|
|
const FHiveProviderGoogleOnAchievementsDelegate & |
Delegate |
|
) |
| |
|
static |
It show hidden achievements.
Achievements are only revealed at 0%, not achieved.
- Parameters
-
AchievementId | achievementId to reveal |
Delegate | FHiveProviderGoogleOnAchievementsDelegate |
◆ AchievementsUnlock()
static void FHiveProviderGoogle::AchievementsUnlock |
( |
const FString & |
AchievementId, |
|
|
const FHiveProviderGoogleOnAchievementsDelegate & |
Delegate |
|
) |
| |
|
static |
It achieve achievements.
Whether hidden or open, achievement is achieved at 100%.
- Parameters
-
AchievementId | achievementId to achieve |
Delegate | FHiveProviderGoogleOnAchievementsDelegate |
◆ GetGooglePlayerId()
static void FHiveProviderGoogle::GetGooglePlayerId |
( |
const FHiveProviderGoogleOnGooglePlayerIdDelegate & |
Delegate | ) |
|
|
static |
It get Google PlayerId and authCode.
- Parameters
-
listener | onGooglePlayerIdResult |
◆ LeaderboardsSubmitScore()
static void FHiveProviderGoogle::LeaderboardsSubmitScore |
( |
const FString & |
LeaderboardId, |
|
|
int64 |
Score, |
|
|
const FHiveProviderGoogleOnLeaderboardsDelegate & |
Delegate |
|
) |
| |
|
static |
It update the leaderboard score.
The score corresponding to the leaderboardId is updated with the score value.
- Parameters
-
LeaderboardId | leaderboardId |
Score | score |
Delegate | FHiveProviderGoogleOnLeaderboardsDelegate |
◆ ShowAchievements()
static void FHiveProviderGoogle::ShowAchievements |
( |
const FHiveProviderGoogleOnAchievementsDelegate & |
Delegate | ) |
|
|
static |
It shows the Google achievement UI.
- Parameters
-
Delegate | FHiveProviderGoogleOnAchievementsDelegate |
◆ ShowLeaderboard()
static void FHiveProviderGoogle::ShowLeaderboard |
( |
const FHiveProviderGoogleOnLeaderboardsDelegate & |
Delegate | ) |
|
|
static |
It shows Google Leaderboard UI.
- Parameters
-
Delegate | FHiveProviderGoogleOnLeaderboardsDelegate |