ZuloOne
English
Sign in
Menu

Global constant

Updated

A global constant is a named value the model ships: a scale, a depth, a default term. Scripts read it typed as GlobalConstants.<Group>.<Name>, or GlobalConstants.Get<T>("Name"). Writes are SetAsync.

Note

Thresholds, rates, and mode codes belong here, not in a service. A literal in C# is a value nobody can change without a developer.

IConstantResolver / IGlobalConstantManager are the platform services. An unknown name throws.

Files live in Constants/ of the model (kind: GlobalConstant, plus _groups.json for the group). Changing one bumps modelVersion in the same change.

Reference does not catalog every constant. Look in Constants/ of the model.

See also#

Where next#

Was this page helpful?