Class EntityHasTagCondition
- Namespace
- ElectricDrill.AstraRpgFramework.Conditions
- Assembly
- com.electricdrill.astra-rpg-framework.Runtime.dll
Condition that checks whether the resolved target entity has the required tags.
The entity is resolved from the configured ElectricDrill.AstraRpgFramework.Conditions.EntityHasTagCondition._target slot in the
EvaluationContext. Returns false if the target is null or does not
implement ITaggable.
[Serializable]
[TypeSelectableMenu("Leaf/Tag")]
public class EntityHasTagCondition : Condition
- Inheritance
-
objectEntityHasTagCondition
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.