Struct QueryTerm¶
Namespace: Apogee.Ecs
Assembly: Apogee.Ecs.dll
One term of a query: a component (or a pair), how it must match, and where it is read from.
public readonly record struct QueryTerm : IEquatable<QueryTerm>
Implements¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors¶
QueryTerm(Entity, QueryOperator, QuerySource)¶
One term of a query: a component (or a pair), how it must match, and where it is read from.
public QueryTerm(Entity Id, QueryOperator Operator = QueryOperator.And, QuerySource Source = QuerySource.Self)
Parameters¶
Id Entity
Operator QueryOperator
Source QuerySource
Properties¶
Id¶
public Entity Id { get; init; }
Property Value¶
Operator¶
public QueryOperator Operator { get; init; }
Property Value¶
Source¶
public QuerySource Source { get; init; }