Skip to content
Flecs
v4.1
Search
Ctrl K
include
flecs
addons
cpp
mixins
timer
decl.hpp
Go to the documentation of this file.
1
/**
2
* @file addons/cpp/mixins/timer/decl.hpp
3
* @brief Timer module declarations.
4
*/
5
6
#pragma once
7
8
namespace
flecs {
9
10
/**
11
* @defgroup cpp_addons_timer Timer
12
* @ingroup cpp_addons
13
* Run systems at a time interval.
14
*
15
* @{
16
*/
17
18
/** Timer component. */
19
using
Timer
=
EcsTimer
;
20
/** Rate filter component. */
21
using
RateFilter
=
EcsRateFilter
;
22
23
/** Forward declaration for timer. */
24
struct
timer
;
25
26
/** @} */
27
28
namespace
_
{
29
30
void
timer_init(
flecs::world
&
world
);
31
32
}
// namespace _
33
}
// namespace flecs
flecs::RateFilter
EcsRateFilter RateFilter
Rate filter component.
Definition
decl.hpp:21
flecs::Timer
EcsTimer Timer
Timer component.
Definition
decl.hpp:19
flecs::_
Int to enum.
Definition
component.hpp:18
EcsRateFilter
Apply a rate filter to a tick source.
Definition
timer.h:45
EcsTimer
Component used for one-shot and interval timer functionality.
Definition
timer.h:35
flecs::timer
Timer class.
Definition
impl.hpp:14
flecs::world
The world.
Definition
world.hpp:129
Esc
↑
↓
to navigate
↵
to open
Esc
to close