IndexExtensions.GetEntitiesWithComponentValue_TComponent,TValue_(thisEntityStore,TValue).md

December 3, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS.IndexExtensions

IndexExtensions.GetEntitiesWithComponentValue<TComponent,TValue>(this EntityStore, TValue) Method

Obsolete: Use this[TValue]
Return the entities with the passed component value.
Executes in O(1) with default index.

public static Friflo.Engine.ECS.Entities GetEntitiesWithComponentValue<TComponent,TValue>(this Friflo.Engine.ECS.EntityStore store, TValue value)
    where TComponent : struct, Friflo.Engine.ECS.IIndexedComponent<TValue>, System.ValueType, System.ValueType;

Type parameters

TComponent

TValue

Parameters

store EntityStore

value TValue

Returns

Entities