Skip to main content

apply_effect

Function apply_effect 

Source
pub fn apply_effect(
    id: impl AsRef<str>,
    registry: &EffectRegistry,
    effects: &mut ActiveEffectSet,
    applied: &mut MessageWriter<'_, EffectApplied>,
) -> Result<EffectInstance, EffectError>
Expand description

Applies an effect and emits EffectApplied.