Variable-binding payload for reusable dynamic caches with runtime variables.
More...
#include <query_info.h>
|
|
void | clear () |
| | Clears runtime variable binding snapshot state.
|
| |
| GAIA_NODISCARD bool | changed (const cnt::sarray< Entity, MaxVarCnt > &runtimeBindings, uint8_t runtimeBindingMask) const |
| | Returns true when runtime variable bindings differ from the captured snapshot.
|
| |
| void | snapshot (const cnt::sarray< Entity, MaxVarCnt > &runtimeBindings, uint8_t runtimeBindingMask) |
| | Captures runtime variable bindings.
|
| |
|
|
cnt::sarray< Entity, MaxVarCnt > | bindings |
| | Snapshot of runtime variable bindings used to build the current dynamic cache.
|
| |
|
uint8_t | bindingMask = 0 |
| | Bitmask of the variable bindings captured in bindings.
|
| |
Variable-binding payload for reusable dynamic caches with runtime variables.
◆ changed()
| GAIA_NODISCARD bool gaia::ecs::QueryInfo::QueryState::DynamicCacheState::VariablePayload::changed |
( |
const cnt::sarray< Entity, MaxVarCnt > & |
runtimeBindings, |
|
|
uint8_t |
runtimeBindingMask |
|
) |
| const |
|
inline |
Returns true when runtime variable bindings differ from the captured snapshot.
- Parameters
-
| runtimeBindings | Current values for all query variable slots. |
| runtimeBindingMask | Bitmask selecting bound slots in runtimeBindings. |
- Returns
- True when the bound-slot mask or any selected value differs.
◆ snapshot()
| void gaia::ecs::QueryInfo::QueryState::DynamicCacheState::VariablePayload::snapshot |
( |
const cnt::sarray< Entity, MaxVarCnt > & |
runtimeBindings, |
|
|
uint8_t |
runtimeBindingMask |
|
) |
| |
|
inline |
Captures runtime variable bindings.
- Parameters
-
| runtimeBindings | Current values for all query variable slots. |
| runtimeBindingMask | Bitmask selecting bound slots to capture. |
The documentation for this struct was generated from the following file:
- /home/runner/work/gaia-ecs/gaia-ecs/include/gaia/ecs/query_info.h