Skip to main content

PlayerEffectManager.EffectPointStatus

A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

The effect state of one body point: which temperature level it is at and the smoke, burn and stat effects it can show.

Constructors​

MemberWhat it is
EffectPointStatus(PlayerEffectManager.EffectPosition effectPosition, PlayerEffectManager manager, PlayerEffectManager.OverrideSettings settings)Creates a PlayerEffectManager.EffectPointStatus from effectPosition, manager and settings.

Fields​

8 private and internal fields
MemberWhat it is
private PlayerEffectManager.EffectApplication burnActiveEffectDefinitionThe burn effect at this point.
private PlayerEffectManager.EffectPosition effectPositionWhere on the body this point is.
private PlayerEffectManager.EffectApplication smokeActiveEffectDefinitionThe smoke effect at this point.
private Dictionary<StatDefinition, PlayerEffectManager.EffectApplication[]> statEffectsDefinitionThe buff and debuff effects for each stat at this point.
private AnimationCurve temperatureCurveThe manager's temperature to size curve.
private Action TemperatureLevelChangedCalled when the level changes; set to the manager's UpdateLightEffects.
private int temperatureLevelCountHow many temperature thresholds there are.
private float[] temperatureLevelsThe manager's smoke and burn thresholds.

Properties​

MemberWhat it is
int CurrentLevel { get; private set; }-1 when cool, 0 when smoking, 1 when burning.
bool HaveStatEffectsValid { get; }True if this point shows stat effects for this player (local or remote).
PlayerEffectManager.EffectApplication[] this[StatDefinition statDefinition] { get; }The buff and debuff effects for a stat at this point, buff first.

Methods​

1 private and internal method
MemberWhat it is
private void UpdateTemperature(HeatPoint point)Moves the point between cool, smoke and burn as its heat point's temperature changes, and resizes the burn effect.

Used in​

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