Class QueryDescription
- Namespace
- KeenEyes
- Assembly
- KeenEyes.Core.dll
Describes which components a query includes, requires, and excludes.
public sealed class QueryDescription
- Inheritance
-
QueryDescription
- Inherited Members
Properties
AllRequired
All components that must be present (Read + Write + With).
public ImmutableArray<Type> AllRequired { get; }
Property Value
HasStringTagFilters
Whether any string tag filters are applied.
public bool HasStringTagFilters { get; }
Property Value
Read
Components that will be read (ref readonly).
public IReadOnlyList<Type> Read { get; }
Property Value
With
Components that must be present (filter only).
public IReadOnlyList<Type> With { get; }
Property Value
WithStringTags
String tags that must be present.
public IReadOnlyList<string> WithStringTags { get; }
Property Value
Without
Components that must NOT be present.
public IReadOnlyList<Type> Without { get; }
Property Value
WithoutStringTags
String tags that must NOT be present.
public IReadOnlyList<string> WithoutStringTags { get; }
Property Value
Write
Components that will be written (ref).
public IReadOnlyList<Type> Write { get; }
Property Value
Methods
AddRead<T>()
Adds a component type as read access.
public void AddRead<T>() where T : struct, IComponent
Type Parameters
TThe component type.
AddWithStringTag(string)
Adds a string tag filter (must be present).
public void AddWithStringTag(string tag)
Parameters
tagstringThe tag that must be present.
AddWith<T>()
Adds a component type as a filter (must be present).
public void AddWith<T>() where T : struct, IComponent
Type Parameters
TThe component type.
AddWithoutStringTag(string)
Adds a string tag exclusion filter (must NOT be present).
public void AddWithoutStringTag(string tag)
Parameters
tagstringThe tag that must NOT be present.
AddWithout<T>()
Adds a component type as an exclusion filter (must NOT be present).
public void AddWithout<T>() where T : struct, IComponent
Type Parameters
TThe component type.
AddWrite<T>()
Adds a component type as write access.
public void AddWrite<T>() where T : struct, IComponent
Type Parameters
TThe component type.
Matches(IEnumerable<Type>)
Checks if an entity with the given components matches this query.
public bool Matches(IEnumerable<Type> entityComponents)
Parameters
entityComponentsIEnumerable<Type>