class

PointClickEngine::Graphics::Effects::EffectComponent

Inherits Reference < Object

Component for attaching effects to game objects

Instance methods

active_effects

Get all active effects

Source
add_effect(effect : Effect)

Add an effect

Source
apply(context : EffectContext)

Apply all effects

Source
clear_effects

Clear all effects

Source
get_effect(effect_type : T.class) : T | Nil forall T

Get first effect of type

Source
has_effect?(effect_type : T.class) : Bool forall T

Check if has specific effect type

Source
remove_effect(effect : Effect)

Remove specific effect

Source
remove_effects_of_type(effect_type : T.class) forall T

Remove all effects of a type

Source
update(dt : Float32)

Update all effects

Source