EasyEcs
API reference

IRelation

An element of a DynamicBuffer that links its entity to IRelation.Target…

public interface IRelation

An element of a DynamicBuffer that links its entity to IRelation.Target: an entity holds any number of links of one kind (the members of a party, the items a merchant offers, the units a buff applies to), and World.Relations finds the entities linking to a target. Links are written with Entity.AddRelation / Entity.RemoveRelation (or Set of a whole buffer), so the index follows; read them with Read<DynamicBuffer<T>>() or an in parameter. The analyzer reports writes through a ref (EECS015), as for any indexed component.

Properties

Target

EntityId Target { get; }

The entity the link points at.

Edit on GitHub

Last updated on

How is this guide?

On this page