Class IntValueChangeThresholdCondition
- Namespace
- ElectricDrill.AstraRpgFramework.Conditions
- Assembly
- com.electricdrill.astra-rpg-framework.Runtime.dll
Condition that compares an int value projected from EventPayload against a fixed threshold.
Returns false when the payload does not implement IHasValueChange<T> for
int, or when the requested projection cannot be represented safely.
[Serializable]
[TypeSelectableMenu("Leaf/ValueChange")]
[ConditionPayload(typeof(IHasValueChange<int>))]
public class IntValueChangeThresholdCondition : Condition
- Inheritance
-
objectIntValueChangeThresholdCondition
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.