Skip to content
Flecs
v4.1
Search
Ctrl K
include
flecs
addons
cpp
mixins
system
mixin.inl
Go to the documentation of this file.
1
/**
2
* @file addons/cpp/mixins/system/mixin.inl
3
* @brief System module world mixin.
4
*/
5
6
/**
7
* @memberof flecs::world
8
* @ingroup cpp_addons_systems
9
*
10
* @{
11
*/
12
13
/** Upcast an entity to a system.
14
* The provided entity must be a system.
15
*
16
* @param e The entity.
17
* @return A system object.
18
*/
19
flecs::system
system
(
flecs::entity
e)
const
;
20
21
/** Create a new system.
22
*
23
* @tparam Components The components to match on.
24
* @tparam Args Arguments passed to the constructor of flecs::system_builder.
25
* @return A system builder.
26
*/
27
template
<
typename
... Components,
typename
... Args>
28
flecs::system_builder
<Components...>
system
(Args &&... args)
const
;
29
30
/** @} */
flecs::entity
Entity.
Definition
entity.hpp:30
flecs::system_builder
System builder.
Definition
builder.hpp:25
flecs::system
System.
Definition
impl.hpp:78
flecs::world::system
flecs::system_builder< Components... > system(Args &&... args) const
Create a new system.
flecs::world::system
flecs::system system(flecs::entity e) const
Upcast an entity to a system.
Esc
↑
↓
to navigate
↵
to open
Esc
to close