Gaia-ECS v0.9.3
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::ecs::QueryTermOptions Struct Reference

Additional options for query terms. This can be used to configure source lookup, traversal and access mode without relying on many positional overloads. More...

#include <query_common.h>

Public Member Functions

QueryTermOptionssrc (Entity source)
 
QueryTermOptionstrav (Entity relation=ChildOf)
 
QueryTermOptionstrav_up (Entity relation=ChildOf)
 
QueryTermOptionstrav_parent (Entity relation=ChildOf)
 
QueryTermOptionstrav_self_parent (Entity relation=ChildOf)
 
QueryTermOptionstrav_down (Entity relation=ChildOf)
 
QueryTermOptionstrav_self_down (Entity relation=ChildOf)
 
QueryTermOptionstrav_child (Entity relation=ChildOf)
 
QueryTermOptionstrav_self_child (Entity relation=ChildOf)
 
QueryTermOptionstrav_kind (QueryTravKind kind)
 
QueryTermOptionstrav_depth (uint8_t maxDepth)
 
QueryTermOptionsread ()
 
QueryTermOptionswrite ()
 
QueryTermOptionsdirect ()
 
QueryTermOptionsin ()
 

Public Attributes

Entity entSrc = EntityBad
 Source entity to query from.
 
Entity entTrav = EntityBad
 Optional traversal relation used for source lookup.
 
QueryTravKind travKind = QueryTravKind::Self | QueryTravKind::Up
 Source traversal filter.
 
uint8_t travDepth = TravDepthUnlimited
 Maximum number of traversal steps. 0 means unlimited traversal depth (bounded internally, at most MAX_TRAV_DEPTH steps).
 
QueryAccess access = QueryAccess::None
 Access mode for the term. When None, typed query terms infer read/write access from template mutability.
 
QueryMatchKind matchKind = QueryMatchKind::Semantic
 Match semantics for terms with special meaning, such as Pair(Is, X).
 

Static Public Attributes

static constexpr uint8_t TravDepthUnlimited = QueryInput::TravDepthUnlimited
 

Detailed Description

Additional options for query terms. This can be used to configure source lookup, traversal and access mode without relying on many positional overloads.


The documentation for this struct was generated from the following file: