Skip to main content

PlayerEffectManager.EffectApplication

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

Private helper of PlayerEffectManager that shows one pooled effect (smoke, burn or a stat buff or debuff) at one EffectPosition on the player.

Constructors​

MemberWhat it is
EffectApplication(PooledObjectDefinition definition, PlayerEffectManager.EffectPosition effectPosition)Creates a PlayerEffectManager.EffectApplication from definition and effectPosition.

Fields​

2 private and internal fields
MemberWhat it is
private PooledObjectDefinition definitionThe pool definition the effect comes from.
private PlayerEffectManager.EffectPosition effectPositionWhere on the body the effect is placed.

Properties​

MemberWhat it is
PlayerEffectParticle ActiveEffect { get; private set; }The pooled particle currently shown, or null.
bool IsValid { get; }False when no definition was given, meaning the effect is culled at this position; every method then does nothing.

Methods​

MemberWhat it is
void Activate()Takes the effect from the pool and places it, if it is not already showing.
void Deactivate()Releases the active effect back to the pool.
void SetSize(float size)Activates the effect and scales it by the position's size times the given value.

Used in​

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