DIFF

class LightDimmingSource

Constructors 1

void LightDimming(ScriptedLightBase light, float baseBrightness, DimmingConfig dimCfg)
References array.Insert(), m_ActiveCfg, m_Configs
Show 2 more, m_DimBrigthnessBase, and m_Light

Constants 1

const float FLICKER_TIME = 0.05

duration of a flicker -> when this speed is set in phase, DIM / BRIGHTEN phases are skipped, producing a quick flicker

Referenced by AdvanceState()

Members 11

protected float m_DimBrigthnessBase
protected float m_DimBrigthnessSpeedCoef

interp speed multiplier

Referenced by AdvanceState(), and HandleDimming()
protected float m_DimBrigthnessTarget

brightness value we want to dim to

Referenced by AdvanceState(), and HandleDimming()
protected float m_DimDelta

delta used for timing states

Referenced by AdvanceState(), and HandleDimming()
protected int m_CurrentPatternID
protected int m_CurrentEntryID
protected bool m_ToBeDestroyed
protected ELightDimmingState m_DimState
Referenced by AdvanceState(), GetState(), HandleDimming()
Show 1 more, SwapConfig()
protected ScriptedLightBase m_Light
protected DimmingConfig m_ActiveCfg
Referenced by AdvanceState(), LightDimming(), SelectPattern()
Show 1 more, SwapConfig()
protected ref array<ref DimmingConfig> m_Configs = new array<ref DimmingConfig>()

Methods 7

void AddConfig(DimmingConfig cfg)
References array.Insert(), and m_Configs
protected void SetDimmingVal(float val)
Referenced by AdvanceState(), and HandleDimming()
void SwapConfig(int index)