Stat Data
Like what your seeing?
Support us as a GitHub Sponsor and get instant access to all our assets, exclusive tools and assets, escalated support and issue tracking and our gratitude. These articles are made possible by our GitHub Sponsors ... become a sponsor today!
Introduction
A data wrapper around Steam's concept of a stat. This is implicitly convertible from string expecting that string to be the "API Name" of the stat.
Fields and Attributes
Id
The API name of the achievement.
Methods
FloatValue
Returns the float value of the stat.
IntValue
Returns the int value of the stat.
RequestUserStats
Requests the stats of a specific user be downloaded from Valve's servers. The callback on this inidicates when the request is completed along with its status ... the handler would look similar to the following
GetValue
For use after you have called RequestUserStats, this gets the value for a specific user and has two overloads one for int values and one for float values.
or
If the method returns false the stat was not found, if it returns true then the value will be populated with the result.
Set
Sets the float value of the stat.
Sets the int value of the stat.
Updates the average rate state value of the stat.
Store
A simple short cut to the Stats and Achievements Store Stats and achievements. You can call this on any achievement or stat and it will commit all changes to the backend for all stats and achievements.
Last updated