Struct system_builder

Synopsis

#include <include/flecs/addons/cpp/mixins/system/builder.hpp>

template <typename ... Components>
struct system_builder final : _::system_builder_base<Components...>

Description

No description yet.

Inheritance

Ancestors: node_builder

Methods

system_builder

Source

Lines 14-26 in include/flecs/addons/cpp/mixins/system/builder.hpp.

template <typename ... Components>
struct system_builder final : _::system_builder_base<Components...> {
    system_builder(flecs::world_t* world, const char *name = nullptr)
        : _::system_builder_base<Components...>(world, name)
    {
        _::sig<Components...>(world).populate(this);

#ifdef FLECS_PIPELINE
        ecs_add_id(world, this->m_desc.entity, ecs_dependson(flecs::OnUpdate));
        ecs_add_id(world, this->m_desc.entity, flecs::OnUpdate);
#endif
    }
};