Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Engine.OnlineStatsInterface

Modifiers
dependson ( OnlineStatsRead , OnlineStatsWrite )

This interface deals with reading & writing stats to the online subsytem.

Engine.OnlineStatsInterface

Delegates Summary
delegate OnFlushOnlineStatsComplete (bool bWasSuccessful)
delegate OnReadOnlineStatsComplete (bool bWasSuccessful)
delegate OnRegisterHostStatGuidComplete (bool bWasSuccessful)

Functions Summary
function AddFlushOnlineStatsCompleteDelegate (delegate<OnFlushOnlineStatsComplete> FlushOnlineStatsCompleteDelegate)
function AddReadOnlineStatsCompleteDelegate (delegate<OnReadOnlineStatsComplete> ReadOnlineStatsCompleteDelegate)
function AddRegisterHostStatGuidCompleteDelegate (delegate<OnFlushOnlineStatsComplete> RegisterHostStatGuidCompleteDelegate)
function ClearFlushOnlineStatsCompleteDelegate (delegate<OnFlushOnlineStatsComplete> FlushOnlineStatsCompleteDelegate)
function ClearReadOnlineStatsCompleteDelegate (delegate<OnReadOnlineStatsComplete> ReadOnlineStatsCompleteDelegate)
function ClearRegisterHostStatGuidCompleteDelegateDelegate (delegate<OnFlushOnlineStatsComplete> RegisterHostStatGuidCompleteDelegate)
functionbool FlushOnlineStats ()
function FreeStats (OnlineStatsRead StatsRead)
functionstring GetClientStatGuid ()
functionstring GetHostStatGuid ()
functionbool ReadOnlineStats (const out array<UniqueNetId> Players, nlineStatsRead StatsRead)
functionbool ReadOnlineStatsByRank (OnlineStatsRead StatsRead, ptional int StartIndex = 1, ptional int NumToRead = 100)
functionbool ReadOnlineStatsByRankAroundPlayer (byte LocalUserNum, nlineStatsRead StatsRead, ptional int NumRows = 10)
functionbool ReadOnlineStatsForFriends (byte LocalUserNum, nlineStatsRead StatsRead)
functionbool RegisterHostStatGuid (const out string HostStatGuid)
functionbool RegisterStatGuid (UniqueNetId PlayerId, onst out string ClientStatGuid)
functionbool WriteOnlinePlayerScores (const out array<OnlinePlayerScore> PlayerScores)
functionbool WriteOnlineStats (UniqueNetId Player, nlineStatsWrite StatsWrite)


Delegates Detail

OnFlushOnlineStatsComplete Source code

delegate OnFlushOnlineStatsComplete ( bool bWasSuccessful )
Delegate called when the stats flush operation has completed
@param bWasSuccessful true if the async action completed without error, false if there was an error

OnReadOnlineStatsComplete Source code

delegate OnReadOnlineStatsComplete ( bool bWasSuccessful )
Notifies the interested party that the last stats read has completed
@param bWasSuccessful true if the async action completed without error, false if there was an error

OnRegisterHostStatGuidComplete Source code

delegate OnRegisterHostStatGuidComplete ( bool bWasSuccessful )
Called when the host stat guid registration is complete
@param bWasSuccessful whether the registration has completed or not


Functions Detail

AddFlushOnlineStatsCompleteDelegate Source code

function AddFlushOnlineStatsCompleteDelegate ( delegate<OnFlushOnlineStatsComplete> FlushOnlineStatsCompleteDelegate )
Adds the delegate used to notify the gameplay code that the stats flush has completed
@param FlushOnlineStatsCompleteDelegate the delegate to use for notifications

AddReadOnlineStatsCompleteDelegate Source code

function AddReadOnlineStatsCompleteDelegate ( delegate<OnReadOnlineStatsComplete> ReadOnlineStatsCompleteDelegate )
Adds the delegate to a list used to notify the gameplay code that the stats read has completed
@param ReadOnlineStatsCompleteDelegate the delegate to use for notifications

AddRegisterHostStatGuidCompleteDelegate Source code

function AddRegisterHostStatGuidCompleteDelegate ( delegate<OnFlushOnlineStatsComplete> RegisterHostStatGuidCompleteDelegate )
Adds the delegate for notifying when the host guid registration is done
@param RegisterHostStatGuidCompleteDelegate the delegate to use for notifications

ClearFlushOnlineStatsCompleteDelegate Source code

function ClearFlushOnlineStatsCompleteDelegate ( delegate<OnFlushOnlineStatsComplete> FlushOnlineStatsCompleteDelegate )
Clears the delegate used to notify the gameplay code that the stats flush has completed
@param FlushOnlineStatsCompleteDelegate the delegate to use for notifications

ClearReadOnlineStatsCompleteDelegate Source code

function ClearReadOnlineStatsCompleteDelegate ( delegate<OnReadOnlineStatsComplete> ReadOnlineStatsCompleteDelegate )
Removes the delegate from the notify list
@param ReadOnlineStatsCompleteDelegate the delegate to use for notifications

ClearRegisterHostStatGuidCompleteDelegateDelegate Source code

function ClearRegisterHostStatGuidCompleteDelegateDelegate ( delegate<OnFlushOnlineStatsComplete> RegisterHostStatGuidCompleteDelegate )
Clears the delegate used to notify the gameplay code
@param RegisterHostStatGuidCompleteDelegate the delegate to use for notifications

FlushOnlineStats Source code

function bool FlushOnlineStats ( )
Commits any changes in the online stats cache to the permanent storage
@return TRUE if the call is successful, FALSE otherwise

FreeStats Source code

function FreeStats ( OnlineStatsRead StatsRead )
Cleans up any platform specific allocated data contained in the stats data
@param StatsRead the object to handle per platform clean up on

GetClientStatGuid Source code

function string GetClientStatGuid ( )
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
@return the client's stat guid

GetHostStatGuid Source code

function string GetHostStatGuid ( )
Reads the host's stat guid for synching up stats. Only valid on the host.
@return the host's stat guid

ReadOnlineStats Source code

function bool ReadOnlineStats ( const out array<UniqueNetId> Players,OnlineStatsRead StatsRead )
Reads a set of stats for the specified list of players
@param Players the array of unique ids to read stats for
@param StatsRead holds the definitions of the tables to read the data from and results are copied into the specified object
@return TRUE if the call is successful, FALSE otherwise

ReadOnlineStatsByRank Source code

function bool ReadOnlineStatsByRank ( OnlineStatsRead StatsRead,optional int StartIndex = 1,optional int NumToRead = 100 )
Reads stats by ranking. This grabs the rows starting at StartIndex through NumToRead and places them in the StatsRead object.
@param StatsRead holds the definitions of the tables to read the data from and results are copied into the specified object
@param StartIndex the starting rank to begin reads at (1 for top)
@param NumToRead the number of rows to read (clamped at 100 underneath)
@return TRUE if the call is successful, FALSE otherwise

ReadOnlineStatsByRankAroundPlayer Source code

function bool ReadOnlineStatsByRankAroundPlayer ( byte LocalUserNum,OnlineStatsRead StatsRead,optional int NumRows = 10 )
Reads stats by ranking centered around a player. This grabs a set of rows above and below the player's current rank
@param LocalUserNum the local player having their stats being centered upon
@param StatsRead holds the definitions of the tables to read the data from and results are copied into the specified object
@param NumRows the number of rows to read above and below the player's rank
@return TRUE if the call is successful, FALSE otherwise

ReadOnlineStatsForFriends Source code

function bool ReadOnlineStatsForFriends ( byte LocalUserNum,OnlineStatsRead StatsRead )
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.
@param LocalUserNum the local player having their stats and friend's stats read for
@param StatsRead holds the definitions of the tables to read the data from and results are copied into the specified object
@return TRUE if the call is successful, FALSE otherwise

RegisterHostStatGuid Source code

function bool RegisterHostStatGuid ( const out string HostStatGuid )
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
@param HostStatGuid the host's stat guid
@return TRUE if the call is successful, FALSE otherwise

RegisterStatGuid Source code

function bool RegisterStatGuid ( UniqueNetId PlayerId,const out string ClientStatGuid )
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.
@param PlayerId the client's unique net id
@param ClientStatGuid the client's stat guid
@return TRUE if the call is successful, FALSE otherwise

WriteOnlinePlayerScores Source code

function bool WriteOnlinePlayerScores ( const out array<OnlinePlayerScore> PlayerScores )
Writes the score data for the match
@param PlayerScores the list of players, teams, and scores they earned
@return TRUE if the call is successful, FALSE otherwise

WriteOnlineStats Source code

function bool WriteOnlineStats ( UniqueNetId Player,OnlineStatsWrite StatsWrite )
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.
@param Player the player to write stats for
@param StatsWrite the object containing the information to write
@return TRUE if the call is successful, FALSE otherwise


Defaultproperties

defaultproperties
{
   Name="Default__OnlineStatsInterface"
   ObjectArchetype=Interface'Core.Default__Interface'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: sk 18-3-2018 10:00:40.244 - Created with UnCodeX