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
-
objectEntityOwnership
Methods
Resolve(EntityCore, EntityAttribution)
Resolves entity according to attribution.
public static EntityCore Resolve(EntityCore entity, EntityAttribution attribution)
Parameters
entityEntityCoreThe acting entity. May be
null.attributionEntityAttributionThe attribution policy to apply.
Returns
- EntityCore
The resolved entity.
nullwhenentityisnull; otherwise nevernull— unowned entities resolve to themselves under every policy.