Flecs v4.0
A fast entity component system (ECS) for C & C++
|
Run systems at a time interval. More...
Typedefs | |
using | flecs::Timer = EcsTimer |
using | flecs::RateFilter = EcsRateFilter |
Functions | |
template<typename T > | |
flecs::timer | flecs::world::timer () const |
Find or register a singleton timer. | |
void | flecs::system::interval (ecs_ftime_t interval) |
Set interval. | |
ecs_ftime_t | interval () |
Get interval. | |
void | timeout (ecs_ftime_t timeout) |
Set timeout. | |
ecs_ftime_t | timeout () |
Get timeout. | |
void | rate (int32_t rate) |
Set system rate (system is its own tick source). | |
void | start () |
Start timer. | |
void | stop () |
Stop timer. | |
template<typename T > | |
void | set_tick_source () |
Set external tick source. | |
void | set_tick_source (flecs::entity e) |
Set external tick source. | |
Run systems at a time interval.
using flecs::RateFilter = EcsRateFilter |
using flecs::Timer = EcsTimer |
|
related |
Get interval.
void interval | ( | ecs_ftime_t | interval | ) |
Set interval.
|
related |
Set system rate (system is its own tick source).
|
related |
Set external tick source.
|
related |
Set external tick source.
|
related |
Start timer.
|
related |
Stop timer.
|
related |
Get timeout.
|
related |
Set timeout.