31script_builder
script(
const char *name =
nullptr)
const {
32 return script_builder(world_, name);
44 flecs::entity_t tid = _::type<T>::id(world_);
FLECS_API char * ecs_ptr_to_expr(const ecs_world_t *world, ecs_entity_t type, const void *data)
Serialize value into expression string.
FLECS_API int ecs_script_run(ecs_world_t *world, const char *name, const char *code)
Parse script.
FLECS_API int ecs_script_run_file(ecs_world_t *world, const char *filename)
Parse script file.
int script_run(const char *name, const char *str) const
Run script.
int script_run_file(const char *filename) const
Run script from file.
flecs::string to_expr(flecs::entity_t tid, const void *value)
Convert value to string.
script_builder script(const char *name=nullptr) const
Build script.