class
PlayerStats
public sealed class PlayerStats Properties
| Name | Type | Description |
|---|---|---|
IsRefreshing | Boolean | True if we're currently fetching new stats |
LastRefresh | DateTime | The UTC datetime when we last fetched new stats |
Item | PlayerStat |
Methods
PlayerStats Copy() Make a copy of this class. Allows you to store the stats from a point in time.
PlayerStat Get(String name) Get a stat by name. Will return an empty stat if not found
Boolean TryGet(String name, PlayerStat stat) Get a stat by name, returns true if found
Task Refresh() Refresh these global stats - grab the latest values
virtual IEnumerator<PlayerStat> GetEnumerator()