#include <OnlineStatisticInterfaceAccelByte.h>
Public Member Functions | |
| bool | ListUserStatItems (int32 LocalUserNum, const TArray< FString > &StatCodes, const TArray< FString > &Tags, const FString &AdditionalKey, bool bAlwaysRequestToService) |
| DEFINE_ONLINE_PLAYER_DELEGATE_THREE_PARAM (MAX_LOCAL_PLAYERS, OnListUserStatItemsCompleted, bool, const TArray< FAccelByteModelsFetchUser > &, const FString &) | |
| DEFINE_ONLINE_PLAYER_DELEGATE_THREE_PARAM (MAX_LOCAL_PLAYERS, OnUserStatItemsResetCompleted, bool, const TArray< FAccelByteModelsUpdateUserStatItemsResponse > &, const FString &) | |
| DEFINE_ONLINE_DELEGATE_ONE_PARAM (OnUserStatItemsDeleteCompleted, const FOnlineError &) | |
| bool | GetListUserStatItems (int32 LocalUserNum, TArray< TSharedRef< FAccelByteModelsFetchUser > > &OutUsers) |
| TSharedPtr< const FOnlineStatsUserStats > | GetAllListUserStatItemFromCache (const FUniqueNetIdRef StatsUserId) const |
| void | QueryStats (const FUniqueNetIdRef LocalUserId, const FUniqueNetIdRef StatsUser, const TArray< FString > &StatNames, const FOnlineStatsQueryUserStatsComplete &Delegate) |
| virtual void | QueryStats (int32 LocalUserNum, const FUniqueNetIdRef StatsUser, const TArray< FString > &StatNames, const FOnlineStatsQueryUserStatsComplete &Delegate) |
| virtual void | QueryStats (int32 LocalUserNum, const FUniqueNetIdRef StatsUser, const FOnlineStatsQueryUserStatsComplete &Delegate) |
| virtual void | QueryStats (int32 LocalUserNum, const TArray< FUniqueNetIdRef > &StatsUsers, const TArray< FString > &StatNames, const FOnlineStatsQueryUsersStatsComplete &Delegate) |
| virtual void | CreateStats (const int32 LocalUserNum, const FUniqueNetIdRef StatsUser, const TArray< FString > &StatNames, const FOnlineStatsCreateStatsComplete &Delegate) |
| virtual void | EmplaceStats (const TSharedPtr< const FOnlineStatsUserStats > &InUserStats) |
| virtual void | EmplaceStats (const TArray< TSharedPtr< const FOnlineStatsUserStats > > &InUsersStats) |
| virtual void | RemoveStats (const FUniqueNetIdRef StatsUserId, const FString &StatsCode) |
| virtual void | ResetStats (const int32 LocalUserNum, const FUniqueNetIdRef StatsUserId) |
| virtual void | UpdateStats (const int32 LocalUserNum, const TArray< FOnlineStatsUserUpdatedStats > &BulkUpdateMultipleUserStatItems, const FOnUpdateMultipleUserStatItemsComplete &Delegate) |
| virtual void | UpdateStats (const FUniqueNetIdRef LocalUserId, const TArray< FOnlineStatsUserUpdatedStats > &UpdatedUserStats, const FOnUpdateMultipleUserStatItemsComplete &Delegate) |
| virtual void | DeleteStats (const int32 LocalUserNum, const FUniqueNetIdRef StatsUserId, const FString &StatsCode, const FString &AdditionalKey) |
| virtual void | QueryStats (const FUniqueNetIdRef LocalUserId, const FUniqueNetIdRef StatsUser, const FOnlineStatsQueryUserStatsComplete &Delegate) override |
| virtual void | QueryStats (const FUniqueNetIdRef LocalUserId, const TArray< FUniqueNetIdRef > &StatsUsers, const TArray< FString > &StatsNames, const FOnlineStatsQueryUsersStatsComplete &Delegate) override |
| virtual TSharedPtr< const FOnlineStatsUserStats > | GetStats (const FUniqueNetIdRef StatsUserId) const override |
| virtual void | UpdateStats (const FUniqueNetIdRef LocalUserId, const TArray< FOnlineStatsUserUpdatedStats > &UpdatedUserStats, const FOnlineStatsUpdateStatsComplete &Delegate) override |
| virtual void | ResetStats (const FUniqueNetIdRef StatsUserId) override |
| virtual void | QueryStats (const int32 LocalUserNum, const FUniqueNetIdRef StatsUser, const TArray< FString > &StatsNames, const TArray< FString > &Tags, const FOnlineStatsQueryUserStatsComplete &Delegate, EAccelByteStatisticSortBy SortBy=EAccelByteStatisticSortBy::NONE) |
Static Public Member Functions | |
| static EAccelByteStatisticUpdateStrategy | ConvertUpdateStrategy (FOnlineStatUpdate::EOnlineStatModificationType Strategy) |
Protected Member Functions | |
| FOnlineStatisticAccelByte () | |
Protected Attributes | |
| FOnlineSubsystemAccelByteWPtr | AccelByteSubsystem = nullptr |
Implementation of Statistic service from AccelByte services
|
inlineprotected |
Hidden default constructor, the constructor that takes in a subsystem instance should be used instead.
|
static |
Convert Unreal built-in enum to Accelbyte enum for statistic update strategy
| Strategy | the strategy to update the statistic |
|
virtual |
Create a one or more user's stats. Only for request by Game Server
| LocalUserNum | Index of user(server) that is attempting to create the stats |
| StatsUser | User to create stats for |
| StatNames | Stats to create stats for all specified users |
| Delegate | Called when the user's stats have finished being created, or when we fail to create the user's stats |
| FOnlineStatisticAccelByte::DEFINE_ONLINE_DELEGATE_ONE_PARAM | ( | OnUserStatItemsDeleteCompleted | , |
| const FOnlineError & | ) |
Delegate fired when we delete one statistic for a player.
| ResultState | The Result of statistic deletion process |
|
virtual |
Delete one statistic for one user. This request only for Game Server
| LocalUserNum | Index of user(server) that is attempting to delete the stats. |
| StatsUserId | User to delete stat for. |
| StatsCode | The stats id to remove. |
| AdditionalKey | The AdditionalKey relate to statistic. |
|
virtual |
Emplace user's cached stats object
| UsersStats | The stats to emplace |
|
virtual |
Emplace a user's cached stats object
| UserStats | The stats to emplace |
| void FOnlineStatisticAccelByte::QueryStats | ( | const FUniqueNetIdRef | LocalUserId, |
| const FUniqueNetIdRef | StatsUser, | ||
| const TArray< FString > & | StatNames, | ||
| const FOnlineStatsQueryUserStatsComplete & | Delegate ) |
Query a specific user's stats
| LocalUserId | User to query as (if applicable) |
| StatsUser | User to get stats for |
| StatNames | Stats to get stats for all specified users |
| Delegate | Called when the user's stats have finished being requested and are now available, or when we fail to retrieve the user's stats |
|
virtual |
Query a user's stats with tags
| LocalUserNum | Index of user(or server) to query as |
| StatsUser | User to get stats for |
| StatsNames | Stats to get stats for all specified users |
| Tags | Tags |
| Delegate | Called when the user's stats have finished being requested and are now available, or when we fail to retrieve the user's stats |
|
virtual |
Query a specific user's stats
| LocalUserNum | Index of user(or server) to query as |
| StatsUser | User to get stats for |
| Delegate | Called when the user's stats have finished being requested and are now available, or when we fail to retrieve the user's stats |
|
virtual |
Query a specific user's stats
| LocalUserNum | Index of user(or server) to query as |
| StatsUser | User to get stats for |
| StatNames | Stats to get stats for all specified users |
| Delegate | Called when the user's stats have finished being requested and are now available, or when we fail to retrieve the user's stats |
|
virtual |
Query a one or more user's stats
| LocalUserNum | Index of user(or server) to query as |
| StatsUsers | Users to get stats for |
| StatNames | Stats to get stats for all specified users |
| Delegate | Called when the user's stats have finished being requested and are now available, or when we fail to retrieve the user's stats |
|
virtual |
Remove user's cached stats object
| StatsUserId | User to remove stats for |
| StatsCode | The stats id to remove |
|
virtual |
Reset all user statistics.
| LocalUserNum | Index of user(server) that is attempting to create the stats |
| StatsUserId | User to reset stats for |
|
virtual |
Update multiple statistics for a user. This request only for Game Client This endpoint extends from UpdateStats(const FUniqueNetIdRef LocalUserId, const TArray<FOnlineStatsUserUpdatedStats>& UpdatedUserStats, const FOnlineStatsUpdateStatsComplete& Delegate) Which is providing the messages in 'Details' field after receiving the response.
| LocalUserId | User to query as (if applicable) |
| UpdatedUserStats | Array of Updated Statistics. |
| Delegate | Called when the statistics have finished being updated, or when we fail to update the stats |
|
virtual |
Update multiple statistics for multiple users. This request only for Game Server
| LocalUserNum | Index of user(server) that is attempting to update the stats. |
| BulkUpdateMultipleUserStatItems | Updated Statistics. |
| Delegate | Called when the statistics have finished being updated, or when we fail to update the stats |
|
protected |
Instance of the subsystem that created this interface