Table of Contents

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

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.