Table of Contents

Class IsOwnedByCondition

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

Experimental — this API may still change. Condition that evaluates to true when the entity resolved from Owned is owned, directly or transitively, by the entity resolved from Owner (see IsOwnedBy(EntityCore)). Returns false when either slot is null.

[Serializable]
[TypeSelectableMenu("Leaf/Entity")]
public class IsOwnedByCondition : Condition
Inheritance
object
IsOwnedByCondition

Properties

Owned

The entity slot expected to be (transitively) owned.

public ConditionTarget Owned { get; }

Property Value

ConditionTarget

Owner

The entity slot expected to be the owner.

public ConditionTarget Owner { get; }

Property Value

ConditionTarget

Methods

Create(ConditionTarget, ConditionTarget)

Creates an IsOwnedByCondition comparing the supplied entity slots.

public static IsOwnedByCondition Create(ConditionTarget owned, ConditionTarget owner)

Parameters

owned ConditionTarget
owner ConditionTarget

Returns

IsOwnedByCondition

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.