ILinkComponent.md
December 3, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS
ILinkComponent Interface
A link component is a component type used to create a single link from one entity to another entity.
Specific component links can be queried with HasValue() in a Query().
public interface ILinkComponent :
Friflo.Engine.ECS.IIndexedComponent<Friflo.Engine.ECS.Entity>,
Friflo.Engine.ECS.IComponent
Implements Friflo.Engine.ECS.IIndexedComponent<Entity>, IComponent
Remarks
This component type enables:
- Add a component link to an entity using AddComponent<T>().
- Return all entities having a ILinkComponent to a specific entity.
See GetIncomingLinks<TComponent>(this Entity) - Return all entities linked by a specific ILinkComponent type.
See Values - Filter entities in a query having a ILinkComponent to a specific entity.
See HasValue<TComponent,TValue>(TValue).