Flecs v3.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
Observers

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...
 

Functions

flecs::observer flecs::world::observer (flecs::entity e) const
 Observer builder. More...
 

Detailed Description

Observers let applications register callbacks for ECS events.

Function Documentation

◆ observer()

Observer builder.

Upcast entity to an observer. The provided entity must be an observer.

Parameters
eThe entity.
Returns
An observer object.