FlickerLight class
Flickering light.
Invisible light-emitter actor placed in a level that contributes a randomly flickering light to the dynamic lighting layer, suitable for fire or torches. It has no sprite and disables all collisions; in addition to a randomly varying main light it emits several smaller sub-lights that wander around its position.
Base classes
- class Jazz2::Actors::ActorBase
- Base class of an object.
Public static functions
- static void Preload(const ActorActivationDetails& details)
- Preloads all assets required by this actor.
Constructors, destructors, conversion operators
- FlickerLight()
- Creates a new instance.
Protected functions
- auto OnActivatedAsync(const ActorActivationDetails& details) -> Task<bool> override
- Called when the object is created and activated.
- void OnUpdate(float timeMult) override
- Called every frame to update the object state.
- void OnEmitLights(SmallVectorImpl<LightEmitter>& lights) override
- Called when emitting lights.