namespace OECS; /// /// Marker interface for components that represent a directed relationship /// between two entities. The component is stored on the /// entity and points to the entity. /// /// The automatically maintains a reverse index so that /// all sources pointing to a given target can be looked up efficiently. /// public interface IRelationship { /// /// The entity that owns this relationship component. /// Entity Source { get; } /// /// The entity that this relationship points to. /// Entity Target { get; } }