ILinkRelation.md
November 22, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS
ILinkRelation Interface
A link relation is a component type used to create multiple links from one entity to other entities.
public interface ILinkRelation :
Friflo.Engine.ECS.IRelation<Friflo.Engine.ECS.Entity>,
Friflo.Engine.ECS.IRelation
Implements Friflo.Engine.ECS.IRelation<Entity>, IRelation
Remarks
A link relation enables:
- Add multiple link relations to an entity using AddComponent<T>().
- Return all links of an entity to other entities using GetRelations<TRelation>(this Entity).
- Remove a specific link to another entity with RemoveRelation<TRelation>(this Entity, Entity).