Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 2.14 KB

RelationExtensions.GetRelations_TRelation_(thisEntity).md

File metadata and controls

30 lines (20 loc) · 2.14 KB

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.