RelationExtensions.GetIncomingLinks_TRelation_(thisEntity).md
November 22, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS.RelationExtensions
RelationExtensions.GetIncomingLinks(this Entity) Method
Return the entities with a link relation referencing the target entity of the passed IRelation type.
Executes in O(1).
public static Friflo.Engine.ECS.EntityLinks<TRelation> GetIncomingLinks<TRelation>(this Friflo.Engine.ECS.Entity target)
where TRelation : struct, Friflo.Engine.ECS.ILinkRelation, System.ValueType, System.ValueType;
Type parameters
TRelation
Parameters
target Entity
Returns
Friflo.Engine.ECS.EntityLinks<TRelation>
Exceptions
System.NullReferenceException
If the entity is null.