Relation-version payload for reusable dynamic caches with relation dependencies.
More...
#include <query_info.h>
|
| GAIA_NODISCARD bool | changed (const World &world, std::span< const Entity > relations) const |
| | Returns true when any tracked relation version changed.
|
| |
| void | snapshot (const World &world, std::span< const Entity > relations) |
| | Captures current relation versions.
|
| |
|
|
cnt::sarray< uint32_t, MAX_ITEMS_IN_QUERY > | versions |
| | Last seen versions for tracked dynamic relation dependencies.
|
| |
Relation-version payload for reusable dynamic caches with relation dependencies.
◆ changed()
| GAIA_NODISCARD bool gaia::ecs::QueryInfo::QueryState::DynamicCacheState::RelationPayload::changed |
( |
const World & |
world, |
|
|
std::span< const Entity > |
relations |
|
) |
| const |
|
inline |
Returns true when any tracked relation version changed.
- Parameters
-
| world | World providing current relation topology versions. |
| relations | Relations aligned with versions. |
- Returns
- True when any current version differs from its snapshot.
◆ snapshot()
| void gaia::ecs::QueryInfo::QueryState::DynamicCacheState::RelationPayload::snapshot |
( |
const World & |
world, |
|
|
std::span< const Entity > |
relations |
|
) |
| |
|
inline |
Captures current relation versions.
- Parameters
-
| world | World providing current relation topology versions. |
| relations | Relations whose versions are captured in order. |
The documentation for this struct was generated from the following file:
- /home/runner/work/gaia-ecs/gaia-ecs/include/gaia/ecs/query_info.h