QueryFilter.ValueInRange_TComponent,TValue_(TValue,TValue).md

July 1, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS.QueryFilter

QueryFilter.ValueInRange<TComponent,TValue>(TValue, TValue) Method

Include entities having a component value in the specified range.
Executes O(N โ‹… log N) N: all unique values.

public Friflo.Engine.ECS.QueryFilter ValueInRange<TComponent,TValue>(TValue min, TValue max)
    where TComponent : struct, Friflo.Engine.ECS.IIndexedComponent<TValue>, System.ValueType, System.ValueType
    where TValue : System.IComparable<TValue>;

Type parameters

TComponent

TValue

Parameters

min TValue

max TValue

Returns

QueryFilter