14 template <
typename ... Components>
15 using system_builder_base =
builder<
17 system_builder_i, Components ...>;
24template <
typename ... Components>
25struct system_builder final : _::system_builder_base<Components...> {
27 : _::system_builder_base<Components...>(
world,
name)
29 _::populate_signature<Components...>(
world,
this);
32 this->desc_.phase = flecs::OnUpdate;
36 template <
typename Func>
40 template <
typename ... CallbackComponents,
typename Func>
41 system each_callback(_::arg_list<CallbackComponents...>, Func&& func);
43 template <
typename ... CallbackComponents>
44 void prepend_each_callback_signature();
Compile-time utilities to inspect properties of functions.
struct ecs_system_desc_t ecs_system_desc_t
Use with ecs_system_init() and ecs_system_update().
ecs_world_t world_t
World type.
Base & name(const char *name)
Specify the value of the identifier by name.
flecs::system system(flecs::entity e) const
Upcast an entity to a system.
System builder interface.