RelationExtensions.GetRelations_TRelation_(thisEntity).md
November 22, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS.RelationExtensions
RelationExtensions.GetRelations(this Entity) Method
Returns all unique relations of the passed entity.
Executes in O(1). In case TRelation is a ILinkRelation it returns all linked entities.
public static Friflo.Engine.ECS.Relations<TRelation> GetRelations<TRelation>(this Friflo.Engine.ECS.Entity entity)
where TRelation : struct, Friflo.Engine.ECS.IRelation, System.ValueType, System.ValueType;
Type parameters
TRelation
Parameters
entity Entity
Returns
Friflo.Engine.ECS.Relations<TRelation>
Exceptions
System.NullReferenceException
If the entity is null.