A slot for hanging effects that can be applied to a Dueler.
More...
|
|
UnityEvent< T > | OnApply = new() |
| | Triggers when an effect is applied.
|
| |
|
UnityEvent< T > | OnRemove = new() |
| | Triggers when an effect is removed.
|
| |
|
|
readonly List< T > | Effects = new() |
| |
A slot for hanging effects that can be applied to a Dueler.
- Template Parameters
-
◆ AddEffect()
| IEnumerator CardRPG.EffectSlot< T >.AddEffect |
( |
Dueler | dueler, |
|
|
T | effect ) |
|
inline |
Adds an effect to the slot for the specified Dueler.
- Parameters
-
- Returns
◆ Clear()
Clears all effects from the slot for the specified Dueler.
- Parameters
-
◆ GetEffects< T1 >()
| List< T > CardRPG.EffectSlot< T >.GetEffects< T1 > |
( |
| ) |
|
|
inline |
Gets all effects of a specific type from the slot.
- Template Parameters
-
- Returns
◆ GetNegativeEffects()
| List< T > CardRPG.EffectSlot< T >.GetNegativeEffects |
( |
| ) |
|
|
inline |
Gets all negative effects.
- Returns
◆ GetPositiveEffects()
| List< T > CardRPG.EffectSlot< T >.GetPositiveEffects |
( |
| ) |
|
|
inline |
Gets all positive effects.
- Returns
◆ RemoveEffect()
| IEnumerator CardRPG.EffectSlot< T >.RemoveEffect |
( |
Dueler | dueler, |
|
|
T | effect ) |
|
inline |
Removes an effect from the slot for the specified Dueler.
- Parameters
-
- Returns
◆ RemoveNegativeEffects()
| IEnumerator CardRPG.EffectSlot< T >.RemoveNegativeEffects |
( |
Dueler | dueler, |
|
|
int | count ) |
|
inline |
Removes a specified number of negative effects from the Dueler.
- Parameters
-
- Returns
◆ RemovePositiveEffects()
| IEnumerator CardRPG.EffectSlot< T >.RemovePositiveEffects |
( |
Dueler | dueler, |
|
|
int | count ) |
|
inline |
Removes a specified number of positive effects from the Dueler.
- Parameters
-
- Returns
The documentation for this class was generated from the following file:
- Duel/HangingEffect/EffectSlot.cs