8#include "../../utils/builder.hpp"
13 template <
typename ... Components>
14 using filter_builder_base = builder<
16 filter_builder_i, Components ...>;
23template <
typename ... Components>
29 if (name !=
nullptr) {
31 entity_desc.
name = name;
32 entity_desc.
sep =
"::";
38 template <
typename Func>
39 void each(Func&& func) {
40 this->build().each(FLECS_FWD(func));
flecs::filter_builder< Comps... > filter_builder(Args &&... args) const
Create a filter builder.
ecs_entity_t ecs_entity_init(ecs_world_t *world, const ecs_entity_desc_t *desc)
Find or create an entity.
Used with ecs_entity_init.
const char * sep
Optional custom separator for hierarchical names.
const char * root_sep
Optional, used for identifiers relative to root.
const char * name
Name of the entity.
Used with ecs_filter_init.