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.
- Listed in Players and characters
Constructors
| Member | What it is |
|---|---|
StatEffectHolder() | Creates a StatEffectHolder from statDefinition. |
StatEffectHolder(StatDefinition statDefinition) | Creates a StatEffectHolder from statDefinition. |
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private StatDrivenEffect buff | Backing field for Buff. |
private StatDrivenEffect debuff | Backing field for Debuff. |
private StatDefinition statDefinition | Backing field for StatDefinition. |
Properties
| Member | What 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: