Class ChangedAttributeCondition
- Namespace
- ElectricDrill.AstraRpgFramework.Conditions
- Assembly
- com.electricdrill.astra-rpg-framework.Runtime.dll
Condition that checks whether the payload of an attribute change event refers to a specific attribute.
Returns false when EventPayload is not an
AttributeChangeInfo, when the configured attribute is null, or when the payload
attribute is null.
[Serializable]
[TypeSelectableMenu("Leaf/Attr. & Stat")]
[ConditionPayload(typeof(AttributeChangeInfo))]
public class ChangedAttributeCondition : Condition
- Inheritance
-
objectChangedAttributeCondition
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.