Skip to main content

UpdateModifier

A internal class in Root.Township, Alta.StatSystem. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Internal modifier that runs an action on every StatManager update while applied. Used by burn, poison and fullness stats.

Constructors​

MemberWhat it is
UpdateModifier(Action<StatManager> update)Creates an UpdateModifier from update.

Properties​

MemberWhat it is
Action<StatManager> Update { get; private set; }The action run each stat update.

Methods​

MemberWhat it is
protected override void InternalApply()Subscribes the action to the manager's Updated event.
protected override void InternalRemove()Unsubscribes the action.