Struct EcsTimer
Synopsis
#include <include/flecs/modules/timer.h>
typedef struct EcsTimer
Description
Component used for one shot/interval timer functionality
Source
Lines 39-45 in include/flecs/modules/timer.h.
typedef struct EcsTimer {
FLECS_FLOAT timeout; /* Timer timeout period */
FLECS_FLOAT time; /* Incrementing time value */
int32_t fired_count; /* Number of times ticked */
bool active; /* Is the timer active or not */
bool single_shot; /* Is this a single shot timer */
} EcsTimer;