Interface IStatusEffectBehavior
- Namespace
- AshesOfVelsingrad.Systems
- Assembly
- Ashes of Velsingrad.dll
Defines the behavior contract for status effects applied to an entity.
public interface IStatusEffectBehavior
Remarks
IStatusEffectBehavior is implemented by classes that react to status effect events such as damage, healing, stat modifiers, control effects, or revival.
Each method is called by the status effect or combat system when a specific effect-related event occurs, allowing custom logic to be executed (visual feedback, stat updates, triggers, etc.).
Methods
OnEffectControlApplied()
Called when a control effect (e.g. stun, silence, root) is applied to the entity.
void OnEffectControlApplied()
OnEffectControlRemoved()
Called when a control effect is removed from the entity.
void OnEffectControlRemoved()
OnEffectDamage(ModifierType, float)
Called when a damage effect is applied to the entity.
void OnEffectDamage(AovDataStructures.ModifierType modifierType, float amount)
Parameters
modifierTypeAovDataStructures.ModifierTypeThe type of modifier responsible for the damage (e.g. Flat, Percent).
amountfloatThe amount of damage applied.
OnEffectHeal(float)
Called when a healing effect is applied to the entity.
void OnEffectHeal(float amount)
Parameters
amountfloatThe amount of health restored.
OnEffectModifierApplied(StatTypeWithModifier, ModifierType, float)
Called when a stat modifier effect is applied to the entity.
void OnEffectModifierApplied(AovDataStructures.StatTypeWithModifier statTypeWithModifier, AovDataStructures.ModifierType modifierType, float amount)
Parameters
statTypeWithModifierAovDataStructures.StatTypeWithModifierThe affected stat.
modifierTypeAovDataStructures.ModifierTypeThe type of modifier applied.
amountfloatThe value of the applied modifier.
OnEffectModifierRemoved(StatTypeWithModifier, ModifierType, float)
Called when a stat modifier effect is removed from the entity.
void OnEffectModifierRemoved(AovDataStructures.StatTypeWithModifier statTypeWithModifier, AovDataStructures.ModifierType modifierType, float amount)
Parameters
statTypeWithModifierAovDataStructures.StatTypeWithModifierThe affected stat.
modifierTypeAovDataStructures.ModifierTypeThe type of modifier being removed.
amountfloatThe value of the removed modifier.
OnEffectRevive(ModifierType, float)
Called when a revive effect is applied to the entity.
void OnEffectRevive(AovDataStructures.ModifierType modifierType, float amount)
Parameters
modifierTypeAovDataStructures.ModifierTypeThe type of modifier responsible for the revive effect.
amountfloatThe amount of health restored upon revival.