ArchetypeQuery.HasValue_TComponent,TValue_(TValue).md

July 1, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS.ArchetypeQuery

ArchetypeQuery.HasValue<TComponent,TValue>(TValue) Method

Include entities having a component with the specified value.
Executes in O(1).

public Friflo.Engine.ECS.ArchetypeQuery HasValue<TComponent,TValue>(TValue value)
    where TComponent : struct, Friflo.Engine.ECS.IIndexedComponent<TValue>, System.ValueType, System.ValueType;

Type parameters

TComponent

TValue

Parameters

value TValue

Returns

ArchetypeQuery