Table of Contents

Class IntValueChangeDirectionCondition

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

Condition that checks the direction of an int value change projected from EventPayload.

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

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

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.