Skip to main content

StatDrivenEffect

A class in Root.Township, Alta.PlayerEffects.

Visuals for one side (buff or debuff) of a stat effect: a pooled effect, a curve from stat value to size, and a shell setting.

Constructors​

MemberWhat it is
StatDrivenEffect()Creates a StatDrivenEffect from isBuff.
StatDrivenEffect(bool isBuff)Creates a StatDrivenEffect from isBuff.

Fields​

3 private and internal fields
MemberWhat it is
private PooledObjectDefinition effectDefinitionBacking field for EffectDefinition.
private StatEffectShellSetting shieldEffectBacking field for ShieldEffect.
private AnimationCurve valueToSizeCurveBacking field for ValueToSizeCurve.

Properties​

MemberWhat it is
PooledObjectDefinition EffectDefinition { get; }Pooled effect spawned for the stat effect.
StatEffectShellSetting ShieldEffect { get; }Shell setting applied over the player.
AnimationCurve ValueToSizeCurve { get; }Maps the stat's value to the effect's size.

Used in​

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