Interface IStatSource

Namespace
SurvivorsMaker.Core
Assembly
SurvivorsMaker.Core.dll

Snapshot sources must keep values stable until Revision changes. No side effects on read.

public interface IStatSource

Properties

Revision

Revision stamp for reported source values; change it whenever those values change.

long Revision { get; }

Property Value

long

Methods

TryGet(string, out float)

Reads a stable external source value without side effects; false means the key is not supplied.

bool TryGet(string key, out float value)

Parameters

key string
value float

Returns

bool