PICO Unreal Platform SDK
|
#include <OnlineAchievementsInterfacePico.h>
Public Member Functions | |
FOnlineAchievementsPico (FOnlineSubsystemPico &InSubsystem) | |
virtual | ~FOnlineAchievementsPico () |
virtual void | WriteAchievements (const FUniqueNetId &PlayerId, FOnlineAchievementsWriteRef &WriteObject, const FOnAchievementsWrittenDelegate &Delegate=FOnAchievementsWrittenDelegate()) override |
Refresh achievement progress data to the server, or unlock an achievement. If the achievement type is Simple, it will unlock an achievement. If the achievement type is Count, it will add the count of the achievement. If the achievement type is Bitfield, it will add the fields of the achievement. More... | |
virtual void | QueryAchievements (const FUniqueNetId &PlayerId, const FOnQueryAchievementsCompleteDelegate &Delegate=FOnQueryAchievementsCompleteDelegate()) override |
Read achievement ids and progress from the server. You must use QueryAchievementDescriptions first to get more information about the achievements。 More... | |
virtual void | QueryAchievementDescriptions (const FUniqueNetId &PlayerId, const FOnQueryAchievementsCompleteDelegate &Delegate=FOnQueryAchievementsCompleteDelegate()) override |
Read achievement descriptions from the server for displaying achievements in game。 More... | |
virtual EOnlineCachedResult::Type | GetCachedAchievement (const FUniqueNetId &PlayerId, const FString &AchievementId, FOnlineAchievement &OutAchievement) override |
Get cached achievement data. More... | |
virtual EOnlineCachedResult::Type | GetCachedAchievements (const FUniqueNetId &PlayerId, TArray< FOnlineAchievement > &OutAchievements) override |
Get cached achievements data. More... | |
virtual EOnlineCachedResult::Type | GetCachedAchievementDescription (const FString &AchievementId, FOnlineAchievementDesc &OutAchievementDesc) override |
The lookup achievement data was found in the cache. More... | |
Private Attributes | |
FOnlineSubsystemPico & | PicoSubsystem |
TMap< FUniqueNetIdPico, TArray< FOnlineAchievement > > | PlayerAchievements |
TMap< FString, FOnlineAchievementDescPico > | AchievementDescriptions |
const int | MAX_REQUEST_SIZE = 50 |
IOnlineAchievements - Interface class for achievements
FOnlineAchievementsPico | ( | FOnlineSubsystemPico & | InSubsystem | ) |
Constructor
InSubsystem | - A reference to the owning subsystem |
|
virtual |
Default destructor
|
overridevirtual |
Get cached achievement data.
PlayerId | The uid of the player we are searching achievements for. |
AchievementId | The name of the achievement. |
OutAchievement | The progress data of the achievement. |
Success
: There is an achievement you want to query in the cache NotFound
: The achievement you want cannot be found in the cache
|
overridevirtual |
The lookup achievement data was found in the cache.
AchievementId | The name of the achievement to look for. |
OutAchievementDesc | The achievement description data. |
Success
: There is an achievement you want to query in the cache NotFound
: The achievement you want cannot be found in the cache
|
overridevirtual |
Get cached achievements data.
PlayerId | The uid of the player we are searching achievements for. |
OutAchievements | The progress data of the achievements. |
Success
: Find success. NotFound
: Find failed.
|
overridevirtual |
Read achievement descriptions from the server for displaying achievements in game。
PlayerId | The id of the player we are reading achievements for. |
Delegate | The delegate to trigger when the query is complete. |
|
overridevirtual |
Read achievement ids and progress from the server. You must use QueryAchievementDescriptions first to get more information about the achievements。
PlayerId | The id of the player we are reading achievements for. |
Delegate | The delegate to trigger when the query is complete. |
|
overridevirtual |
Refresh achievement progress data to the server, or unlock an achievement. If the achievement type is Simple, it will unlock an achievement. If the achievement type is Count, it will add the count of the achievement. If the achievement type is Bitfield, it will add the fields of the achievement.
PlayerId | The uid of the player we are writing achievements for. |
WriteObject | The stats holder containing the achievements we are writing. You can save data in its param: Properties. |
Delegate | The delegate to call when the write has completed or failed. |
|
private |
Cached achievements (not player-specific)
|
private |
The maximum number of items that can be obtained in a single request
|
private |
Reference to the owning subsystem
|
private |
Mapping of players to their achievements