16struct script_builder {
17 script_builder(flecs::world_t *
world,
const char *name =
nullptr)
21 if (name !=
nullptr) {
23 entity_desc.
name = name;
24 entity_desc.
sep =
"::";
30 script_builder& code(
const char *str) {
35 script_builder& filename(
const char *str) {
43 flecs::world_t *world_;
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_script_init()