Flecs v4.0
A fast entity component system (ECS) for C & C++
|
Observers let applications register callbacks for ECS events. More...
Classes | |
struct | flecs::observer_builder< Components > |
Observer builder. More... | |
struct | flecs::observer_builder_i< Base, Components > |
Observer builder interface. More... | |
flecs::observer | flecs::world::observer (flecs::entity e) const |
Observer builder. | |
template<typename... Components, typename... Args> | |
flecs::observer_builder< Components... > | observer (Args &&... args) const |
Create a new observer. | |
Observers let applications register callbacks for ECS events.
|
related |
Create a new observer.
Components | The components to match on. |
Args | Arguments passed to the constructor of flecs::observer_builder. |
flecs::observer observer | ( | flecs::entity | e | ) | const |
Observer builder.
Upcast entity to an observer. The provided entity must be an observer.
e | The entity. |