Flecs v4.0
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
EcsTimer Struct Reference

Component used for one shot/interval timer functionality. More...

#include <timer.h>

Public Attributes

ecs_ftime_t timeout
 Timer timeout period.
 
ecs_ftime_t time
 Incrementing time value.
 
ecs_ftime_t overshoot
 Used to correct returned interval time.
 
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.
 

Detailed Description

Component used for one shot/interval timer functionality.

Definition at line 35 of file timer.h.

Member Data Documentation

◆ active

bool EcsTimer::active

Is the timer active or not.

Definition at line 40 of file timer.h.

◆ fired_count

int32_t EcsTimer::fired_count

Number of times ticked.

Definition at line 39 of file timer.h.

◆ overshoot

ecs_ftime_t EcsTimer::overshoot

Used to correct returned interval time.

Definition at line 38 of file timer.h.

◆ single_shot

bool EcsTimer::single_shot

Is this a single shot timer.

Definition at line 41 of file timer.h.

◆ time

ecs_ftime_t EcsTimer::time

Incrementing time value.

Definition at line 37 of file timer.h.

◆ timeout

ecs_ftime_t EcsTimer::timeout

Timer timeout period.

Definition at line 36 of file timer.h.


The documentation for this struct was generated from the following file: