s&box docs

public sealed class Sandbox.Services.Stats.GlobalStats

Methods

Showing 5 methods

public Sandbox.Services.Stats.GlobalStats Copy()

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

public Sandbox.Services.Stats.GlobalStat 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.GlobalStat> GetEnumerator()

public System.Threading.Tasks.Task Refresh()

Refresh these global stats - grab the latest values

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

Get a stat by name, returns true if found

Properties

Showing 3 properties

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

True if we're currently fetching new stats

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

The UTC datetime when we last fetched new stats

Metadata

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

On this page