25 if (name !=
nullptr) {
27 entity_desc.
name = name;
28 entity_desc.
sep =
"::";
ecs_world_t world_t
World type.
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 the root.
const char * name
Name of the entity.
Used with ecs_script_init().
const char * code
Set to parse script from string.
ecs_entity_t entity
Set to customize entity handle associated with script.
const char * filename
Set to load script from file.
Script builder interface.
script_builder(flecs::world_t *world, const char *name=nullptr)
Construct a script builder.
flecs::entity run() const
Run the script and return the script entity.
script_builder & filename(const char *str)
Set the script filename.
script_builder & code(const char *str)
Set the script code.