Class NotCondition
- Namespace
- ElectricDrill.AstraRpgFramework.Conditions
- Assembly
- com.electricdrill.astra-rpg-framework.Runtime.dll
Decorator condition that negates the result of its inner condition (logical NOT).
Evaluates to true when the inner condition is false, and vice-versa.
When Inner is null, evaluates to true.
[Serializable]
[TypeSelectableMenu("Composites")]
public class NotCondition : Condition
- Inheritance
-
objectNotCondition
Fields
Inner
[SerializeReference]
[TypeSelectable]
[Tooltip("Condition whose result will be inverted.")]
public Condition Inner
Field Value
Methods
Evaluate(EvaluationContext)
Evaluates this condition against the provided context.
public override bool Evaluate(EvaluationContext ctx)
Parameters
ctxEvaluationContextContextual data available to the condition (holder, performer, payload).
Returns
- bool
trueif the condition is satisfied; otherwisefalse.