Class EntityLevelThresholdTransitionCondition
- Namespace
- ElectricDrill.AstraRpgFramework.Conditions
- Assembly
- com.electricdrill.astra-rpg-framework.Runtime.dll
Condition that checks whether an entity level comparison against a fixed threshold becomes satisfied or ceases to be satisfied across a level change payload.
Returns false when the payload does not implement IHasValueChange<T>
for int.
[Serializable]
[TypeSelectableMenu("Leaf/Entity")]
[ConditionPayload(typeof(IHasValueChange<int>))]
public class EntityLevelThresholdTransitionCondition : Condition
- Inheritance
-
objectEntityLevelThresholdTransitionCondition
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.