Skip to main content

StatEffectHolder

A class in Root.Township, Alta.PlayerEffects.

Pairs a stat with the visual effects shown when it goes up (buff) or down (debuff). Listed in StatEffectsDefinition.StatEffects and read by PlayerEffectManager.

Constructors​

MemberWhat it is
StatEffectHolder()Creates a StatEffectHolder from statDefinition.
StatEffectHolder(StatDefinition statDefinition)Creates a StatEffectHolder from statDefinition.

Fields​

3 private and internal fields
MemberWhat it is
private StatDrivenEffect buffBacking field for Buff.
private StatDrivenEffect debuffBacking field for Debuff.
private StatDefinition statDefinitionBacking field for StatDefinition.

Properties​

MemberWhat it is
StatDrivenEffect Buff { get; }Effect shown for a buff to the stat.
StatDrivenEffect Debuff { get; }Effect shown for a debuff to the stat.
StatDefinition StatDefinition { get; }The stat these effects belong to.

Used in​

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