Always snap to grid
UE3:OnlineStatsInterface (UDK)
Interface >> OnlineStatsInterface |
Contents
- 1 Delegates
- 2 Instance functions
- 2.1 AddFlushOnlineStatsCompleteDelegate
- 2.2 AddReadOnlineStatsCompleteDelegate
- 2.3 AddRegisterHostStatGuidCompleteDelegate
- 2.4 ClearFlushOnlineStatsCompleteDelegate
- 2.5 ClearReadOnlineStatsCompleteDelegate
- 2.6 ClearRegisterHostStatGuidCompleteDelegateDelegate
- 2.7 FlushOnlineStats
- 2.8 FreeStats
- 2.9 GetClientStatGuid
- 2.10 GetHostStatGuid
- 2.11 ReadOnlineStats
- 2.12 ReadOnlineStatsByRank
- 2.13 ReadOnlineStatsByRankAroundPlayer
- 2.14 ReadOnlineStatsForFriends
- 2.15 RegisterHostStatGuid
- 2.16 RegisterStatGuid
- 2.17 WriteOnlinePlayerScores
- 2.18 WriteOnlineStats
- Package:
- Engine
- Known implementing classes:
- OnlineSubsystemPC
- This interface in other games:
- UT3
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
This interface deals with reading & writing stats to the online subsytem.
Delegates[edit]
OnFlushOnlineStatsComplete[edit]
Delegate called when the stats flush operation has completed
Parameters:
- SessionName - the name of the session having stats flushed for
- bWasSuccessful - true if the async action completed without error, false if there was an error
OnReadOnlineStatsComplete[edit]
Notifies the interested party that the last stats read has completed
Parameters:
- bWasSuccessful - true if the async action completed without error, false if there was an error
OnRegisterHostStatGuidComplete[edit]
Called when the host stat guid registration is complete
Parameters:
- bWasSuccessful - whether the registration has completed or not
Instance functions[edit]
AddFlushOnlineStatsCompleteDelegate[edit]
Adds the delegate used to notify the gameplay code that the stats flush has completed
Parameters:
- FlushOnlineStatsCompleteDelegate - the delegate to use for notifications
AddReadOnlineStatsCompleteDelegate[edit]
Adds the delegate to a list used to notify the gameplay code that the stats read has completed
Parameters:
- ReadOnlineStatsCompleteDelegate - the delegate to use for notifications
AddRegisterHostStatGuidCompleteDelegate[edit]
Adds the delegate for notifying when the host guid registration is done
Parameters:
- RegisterHostStatGuidCompleteDelegate - the delegate to use for notifications
ClearFlushOnlineStatsCompleteDelegate[edit]
Clears the delegate used to notify the gameplay code that the stats flush has completed
Parameters:
- FlushOnlineStatsCompleteDelegate - the delegate to use for notifications
ClearReadOnlineStatsCompleteDelegate[edit]
Removes the delegate from the notify list
Parameters:
- ReadOnlineStatsCompleteDelegate - the delegate to use for notifications
ClearRegisterHostStatGuidCompleteDelegateDelegate[edit]
Clears the delegate used to notify the gameplay code
Parameters:
- RegisterHostStatGuidCompleteDelegate - the delegate to use for notifications
FlushOnlineStats[edit]
Commits any changes in the online stats cache to the permanent storage
Parameters:
- SessionName - the name of the session having stats flushed for
Returns:
- TRUE if the call is successful, FALSE otherwise
FreeStats[edit]
Cleans up any platform specific allocated data contained in the stats data
Parameters:
- StatsRead - the object to handle per platform clean up on
GetClientStatGuid[edit]
Reads the client's stat guid that was generated by registering the host's guid Used for synching up stats. Only valid on the client. Only callable after the host registration has completed
Returns:
- the client's stat guid
GetHostStatGuid[edit]
Reads the host's stat guid for synching up stats. Only valid on the host.
Returns:
- the host's stat guid
ReadOnlineStats[edit]
Reads a set of stats for the specified list of players
Parameters:
- Players - the array of unique ids to read stats for
- StatsRead - holds the definitions of the tables to read the data from and results are copied into the specified object
Returns:
- TRUE if the call is successful, FALSE otherwise
ReadOnlineStatsByRank[edit]
Reads stats by ranking. This grabs the rows starting at StartIndex through NumToRead and places them in the StatsRead object.
Parameters:
- StatsRead - holds the definitions of the tables to read the data from and results are copied into the specified object
- StartIndex - the starting rank to begin reads at (1 for top)
- NumToRead - the number of rows to read (clamped at 100 underneath)
Returns:
- TRUE if the call is successful, FALSE otherwise
ReadOnlineStatsByRankAroundPlayer[edit]
Reads stats by ranking centered around a player. This grabs a set of rows above and below the player's current rank
Parameters:
- LocalUserNum - the local player having their stats being centered upon
- StatsRead - holds the definitions of the tables to read the data from and results are copied into the specified object
- NumRows - the number of rows to read above and below the player's rank
Returns:
- TRUE if the call is successful, FALSE otherwise
ReadOnlineStatsForFriends[edit]
Reads a player's stats and all of that player's friends stats for the specified set of stat views. This allows you to easily compare a player's stats to their friends.
Parameters:
- LocalUserNum - the local player having their stats and friend's stats read for
- StatsRead - holds the definitions of the tables to read the data from and results are copied into the specified object
Returns:
- TRUE if the call is successful, FALSE otherwise
RegisterHostStatGuid[edit]
Registers the host's stat guid with the client for verification they are part of the stat. Note this is an async task for any backend communication that needs to happen before the registration is deemed complete
Parameters:
- HostStatGuid - the host's stat guid
Returns:
- TRUE if the call is successful, FALSE otherwise
RegisterStatGuid[edit]
Registers the client's stat guid on the host to validate that the client was in the stat. Used for synching up stats. Only valid on the host.
Parameters:
- PlayerId - the client's unique net id
- ClientStatGuid - the client's stat guid
Returns:
- TRUE if the call is successful, FALSE otherwise
WriteOnlinePlayerScores[edit]
Writes the score data for the match
Parameters:
- SessionName - the name of the session the player stats are being recorded for
- LeaderboardId - the leaderboard to write the score information to
- PlayerScores - the list of players, teams, and scores they earned
Returns:
- TRUE if the call is successful, FALSE otherwise
WriteOnlineStats[edit]
Writes out the stats contained within the stats write object to the online subsystem's cache of stats data. Note the new data replaces the old. It does not write the data to the permanent storage until a FlushOnlineStats() call or a session ends. Stats cannot be written without a session or the write request is ignored. No more than 5 stats views can be written to at a time or the write request is ignored.
Parameters:
- SessionName - the name of the session the stats are being written to
- Player - the player to write stats for
- StatsWrite - the object containing the information to write
Returns:
- TRUE if the call is successful, FALSE otherwise