Class AtMostNCondition
- Namespace
- ElectricDrill.AstraRpgFramework.Conditions
- Assembly
- com.electricdrill.astra-rpg-framework.Runtime.dll
Composite condition that evaluates to true when at most ElectricDrill.AstraRpgFramework.Conditions.AtMostNCondition._n child conditions
are satisfied.
With N = 0 this is equivalent to NoneCondition.
An empty condition list always evaluates to true.
[Serializable]
[TypeSelectableMenu("Composites")]
public class AtMostNCondition : Condition
- Inheritance
-
objectAtMostNCondition
Fields
Conditions
[SerializeReference]
[TypeSelectable]
[Tooltip("Child conditions evaluated by this thresholded NOR composite.")]
public List<Condition> Conditions
Field Value
- List<Condition>
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.