![]() |
Flecs v3.2
A fast entity component system (ECS) for C & C++
|
Filter world mixin. More...
Go to the source code of this file.
Functions | |
template<typename... Comps, typename... Args> | |
flecs::filter_builder< Comps... > | filter_builder (Args &&... args) const |
Create a filter builder. More... | |
template<typename Func > | |
void | each (Func &&func) const |
Iterate over all entities with components in argument list of function. More... | |
template<typename T , typename Func > | |
void | each (Func &&func) const |
Iterate over all entities with provided component. More... | |
template<typename Func > | |
void | each (flecs::id_t term_id, Func &&func) const |
Iterate over all entities with provided (component) id. | |
Filter world mixin.
Definition in file mixin.inl.
void each | ( | Func && | func | ) | const |
Iterate over all entities with components in argument list of function.
The function parameter must match the following signature: void(*)(T&, U&, ...) or void(*)(flecs::entity, T&, U&, ...)
void each | ( | Func && | func | ) | const |
Iterate over all entities with provided component.
The function parameter must match the following signature: void(*)(T&) or void(*)(flecs::entity, T&)
flecs::filter_builder< Comps... > filter_builder | ( | Args &&... | args | ) | const |
Create a filter builder.