Table of Contents

Class AllConditions

Namespace
ElectricDrill.AstraRpgFramework.Conditions
Assembly
com.electricdrill.astra-rpg-framework.Runtime.dll

Composite condition that evaluates to true only when ALL child conditions are satisfied (logical AND). An empty condition list evaluates to true.

[Serializable]
[TypeSelectableMenu("Composites")]
public class AllConditions : Condition
Inheritance
object
AllConditions

Fields

Conditions

[SerializeReference]
[TypeSelectable]
[Tooltip("Child conditions evaluated by this logical AND 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

ctx EvaluationContext

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

Returns

bool

true if the condition is satisfied; otherwise false.