Table of Contents

Class LongValueChangeThresholdCondition

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

Condition that compares a long value projected from EventPayload against a fixed threshold.

Returns false when the payload does not implement IHasValueChange<T> for long, or when the requested projection cannot be represented safely.

[Serializable]
[TypeSelectableMenu("Leaf/ValueChange")]
[ConditionPayload(typeof(IHasValueChange<long>))]
public class LongValueChangeThresholdCondition : Condition
Inheritance
object
LongValueChangeThresholdCondition

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.