Table of Contents

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
object
NotCondition

Fields

Inner

[SerializeReference]
[TypeSelectable]
[Tooltip("Condition whose result will be inverted.")]
public Condition Inner

Field Value

Condition

Methods

Evaluate(EvaluationContext)

Evaluates this condition against the provided context.

public override bool Evaluate(EvaluationContext ctx)

Parameters

ctx EvaluationContext

Contextual data available to the condition (holder, performer, payload).

Returns

bool

true if the condition is satisfied; otherwise false.