Skip to content
Flecs v4.1
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 */
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 */
27template <typename... Components, typename... Args>
28flecs::system_builder<Components...> system(Args &&... args) const;
29
30/** @} */
Entity.
Definition entity.hpp:30
System builder.
Definition builder.hpp:25
System.
Definition impl.hpp:78
flecs::system_builder< Components... > system(Args &&... args) const
Create a new system.
flecs::system system(flecs::entity e) const
Upcast an entity to a system.