Table of Contents

Class EntityOwnership

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

Experimental — this API may still change. Resolves the entity that should be treated as responsible for an acting entity's behavior, according to a configured EntityAttribution policy.

public static class EntityOwnership
Inheritance
object
EntityOwnership

Methods

Resolve(EntityCore, EntityAttribution)

Resolves entity according to attribution.

public static EntityCore Resolve(EntityCore entity, EntityAttribution attribution)

Parameters

entity EntityCore

The acting entity. May be null.

attribution EntityAttribution

The attribution policy to apply.

Returns

EntityCore

The resolved entity. null when entity is null; otherwise never null — unowned entities resolve to themselves under every policy.