Stats - stingray.Stats namespace reference - Stingray Lua API Reference
The interface for accessing the player statistics functionality on Steam.
As the object is a singleton (there is only one Stats), you do not need to pass any Stats
object to the functions. All the functions operate on the Stats singleton.
|
get ( name ) : number
Returns the value of the named statistic.
|
Parameters name : | string | The name of the statistic whose value you want to retrieve. |
Returns number |
The value of the named statistic.
|
|
progress ( token ) : steam_stat_progress
Retrieves information about the current state of the operation identified by the specified token.
|
Parameters token : | integer | The token that provides access to the status of the operation. |
Returns
|
Clears all stats set for the user.
|
Parameters | This function does not accept any parameters. |
Returns | This function does not return any values. |
|
set ( name, value ) : integer
Sets the statistics with the specified names to the specified values.
|
Parameters name : | string | The name of the statistic to set. |
value : | any(integer, number) | The value corresponding to the statistic. The any(...) notation indicates that this item may be an instance of any of the types shown in the parentheses. |
Returns integer |
A token that tracks the progress of the operation.
|