My program doesn't have bugs. It just develops random features.

UE3:OnlineStatsWrite (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UDK Object >> OnlineStats >> OnlineStatsWrite
Package: 
Engine
Direct subclass:
UTLeaderboardWriteBase
This class in other games:
UT3

Stats class that accumulates the stats data before submitting it to the online subsytem for storage.

Properties

ArbitratedViewIds

Type: array<int>

This array contains the list of views to write the properties to for arbitrated matches

Properties

Type: array<Settings.SettingsProperty>

Modifiers: const

The array of properties to publish to the stats view

RatingId

Type: int

Modifiers: const

This is the property id that is used to rate on

StatMappings

Type: array<Settings.StringIdToStringMapping>

Modifiers: const

Maps the stat's column num to the human readable stat name

ViewIds

Type: array<int>

This array contains the list of views to write the properties to

Delegates

OnStatsWriteComplete

delegate OnStatsWriteComplete ()

Delegate used to notify the caller when stats write has completed

Native functions

DecrementFloatStat

native function DecrementFloatStat (int StatId, optional float DecBy)

Decrements a stat of type SDT_Float by the value specified. Does nothing if the stat is not of the right type.

Parameters:

  • StatId - the stat to decrement
  • DecBy - the value to decrement by

DecrementIntStat

native function DecrementIntStat (int StatId, optional int DecBy)

Decrements a stat of type SDT_Int by the value specified. Does nothing if the stat is not of the right type.

Parameters:

  • StatId - the stat to decrement
  • DecBy - the value to decrement by

GetStatId

native function bool GetStatId (name StatName, out int StatId)

Searches the stat mappings to find the stat id that matches the name

Parameters:

  • StatName - the name of the stat being searched for
  • StatId - the out value that gets the id

Returns:

true if it was found, false otherwise

GetStatName

native function name GetStatName (int StatId)

Searches the stat mappings to find human readable name for the stat id

Parameters:

  • StatId - the id of the stats to find the name for

Returns:

true if it was found, false otherwise

IncrementFloatStat

native function IncrementFloatStat (int StatId, optional float IncBy)

Increments a stat of type SDT_Float by the value specified. Does nothing if the stat is not of the right type.

Parameters:

  • StatId - the stat to increment
  • IncBy - the value to increment by

IncrementIntStat

native function IncrementIntStat (int StatId, optional int IncBy)

Increments a stat of type SDT_Int by the value specified. Does nothing if the stat is not of the right type.

Parameters:

  • StatId - the stat to increment
  • IncBy - the value to increment by

SetFloatStat

native function SetFloatStat (int StatId, float Value)

Sets a stat of type SDT_Float to the value specified. Does nothing if the stat is not of the right type.

Parameters:

  • StatId - the stat to change the value of
  • Value - the new value to assign to the stat

SetIntStat

native function SetIntStat (int StatId, int Value)

Sets a stat of type SDT_Int to the value specified. Does nothing if the stat is not of the right type.

Parameters:

  • StatId - the stat to change the value of
  • Value - the new value to assign to the stat