s&box docs

public sealed class Sandbox.Services.Stats.PlayerStats

Methods

Showing 5 methods

public Sandbox.Services.Stats.PlayerStats Copy()

Make a copy of this class. Allows you to store the stats from a point in time.

public Sandbox.Services.Stats.PlayerStat Get(string name)

Get a stat by name. Will return an empty stat if not found

public virtual sealed System.Collections.Generic.IEnumerator`1<Sandbox.Services.Stats.PlayerStat> GetEnumerator()

public System.Threading.Tasks.Task Refresh()

Refresh these global stats - grab the latest values

public bool TryGet(string name, Sandbox.Services.Stats.PlayerStat stat)

Get a stat by name, returns true if found

Properties

Showing 3 properties

public bool Sandbox.Services.Stats.PlayerStats.IsRefreshing { get; set; }

True if we're currently fetching new stats

public System.DateTime Sandbox.Services.Stats.PlayerStats.LastRefresh { get; set; }

The UTC datetime when we last fetched new stats

Metadata

FieldValue
Namespaceglobal
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Services.Stats.PlayerStats

On this page