Skip to main content

ModifierSet

A class in Root.Township, Alta.StatSystem.

A group of stat modifiers for one StatManager, applied or removed together. Threshold stats use one set per level and switch sets as the value crosses levels.

Constructors​

MemberWhat it is
ModifierSet(StatManager manager)Creates a ModifierSet from manager.

Fields​

1 private and internal field
MemberWhat it is
private List<Modifier> modifiersThe modifiers in the set.

Properties​

MemberWhat it is
StatManager Manager { get; private set; }The stat manager the modifiers act on.

Methods​

MemberWhat it is
void Add(Modifier modifier)Initializes a modifier against the manager and adds it if that succeeds.
void Apply()Applies every modifier in the set.
IEnumerator<Modifier> GetEnumerator()Enumerates the modifiers in the set.
void Remove()Removes every modifier in the set from its stat. The modifiers stay in the set.
1 private and internal method
MemberWhat it is
private IEnumerator System.Collections.IEnumerable.GetEnumerator()Enumerates the modifiers in the set.

Used in​

Members of other types that take, return or hold a ModifierSet: