Table of Contents

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

statusEffect StatusEffect

The 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

true if the effect is present, otherwise false.

Type Parameters

T

The type of the status effect to check for.

RemoveEffect(StatusEffect)

Removes an active status effect from this target.

void RemoveEffect(StatusEffect statusEffect)

Parameters

statusEffect StatusEffect

The status effect to remove.