RelationExtensions.ForAllEntityRelations_TRelation_(thisEntityStore,ForEachEntity_TRelation_).md

December 3, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS.RelationExtensions

RelationExtensions.ForAllEntityRelations(this EntityStore, ForEachEntity) Method

Obsolete: Use For(ForEachEntity<TRelation>)
Iterates all entity relations of the specified TRelation type.
Executes in O(N) N: number of all entity relations.

public static void ForAllEntityRelations<TRelation>(this Friflo.Engine.ECS.EntityStore store, Friflo.Engine.ECS.ForEachEntity<TRelation> lambda)
    where TRelation : struct, Friflo.Engine.ECS.IRelation, System.ValueType, System.ValueType;

Type parameters

TRelation

Parameters

store EntityStore

lambda Friflo.Engine.ECS.ForEachEntity<TRelation>