Skip to main content

TemperatureVisuals.ParticleSystemHandler

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

A group of particle systems on a smelter's temperature visuals that fade in and out with a progress value, turning off two seconds after fading out.

Constructors​

MemberWhat it is
ParticleSystemHandler()Creates a TemperatureVisuals.ParticleSystemHandler with default values.

Fields​

4 private and internal fields
MemberWhat it is
private bool isPlayingParticlesWhether the particles are on.
private ParticleSystem[] particlesParticle systems in the group.
private AnimationCurve particlesAlphaCurve from progress to particle alpha.
private Coroutine particlesStoppingCoroutinePending stop coroutine, or null.

Properties​

MemberWhat it is
MonoBehaviour BaseBehaviour { get; set; }Behaviour used to run the stop coroutine.

Methods​

MemberWhat it is
void Initialize(MonoBehaviour baseBehaviour)Stores the behaviour and reads whether the particles are already playing.
void PostBake()Build step: drops missing particle systems from the array.
void Update(float lightProgress)Sets particle alpha from particlesAlpha at the given progress, starting or stopping them around zero.
4 private and internal methods
MemberWhat it is
private void Start()Turns the particle objects on and cancels any pending stop.
private void Stop()Schedules the particle objects to turn off.
private IEnumerator StopDelayed() (iterator)Coroutine that waits two seconds, then turns the particle objects off.
private void UpdateAlpha(float alpha)Sets the alpha of each system's start colour.

Used in​

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