Table of Contents

Class LongValueChangeThresholdTransitionCondition

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

Condition that checks whether a long comparison against a fixed threshold becomes satisfied or ceases to be satisfied across a value change payload.

Returns false when the payload does not implement IHasValueChange<T> for long.

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

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.