Interface IEffectTarget
- Namespace
- AshesOfVelsingrad.systems.status_effects
- Assembly
- Ashes of Velsingrad.dll
Represents an entity that can receive and manage status effects.
public interface IEffectTarget
Methods
ApplyEffect(StatusEffect)
Applies a status effect to this target.
void ApplyEffect(StatusEffect statusEffect)
Parameters
statusEffectStatusEffectThe status effect to apply.
GetActiveEffects()
Retrieves all status effects that are currently active on this target.
List<StatusEffect> GetActiveEffects()
Returns
- List<StatusEffect>
A list containing all active status effects.
HasEffect<T>()
Checks whether this target currently has an active status effect of the given type.
bool HasEffect<T>() where T : StatusEffect
Returns
- bool
trueif the effect is present, otherwisefalse.
Type Parameters
TThe type of the status effect to check for.
RemoveEffect(StatusEffect)
Removes an active status effect from this target.
void RemoveEffect(StatusEffect statusEffect)
Parameters
statusEffectStatusEffectThe status effect to remove.