31script_builder
script(
const char *name =
nullptr)
const {
32 return script_builder(world_, name);
86void get_const_var(
const char *name, T& out,
const T& default_value = {})
const;
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, ecs_script_eval_result_t *result)
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 a script.
int script_run_file(const char *filename) const
Run a script from a file.
flecs::string to_expr(flecs::entity_t tid, const void *value)
Convert a value to a string.
T get_const_var(const char *name, const T &default_value={}) const
Get the value of an exported script variable.
script_builder script(const char *name=nullptr) const
Build a script.
ecs_entity_t entity_t
Entity type.