Flecs v4.0
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
Script
Collaboration diagram for Script:

Classes

struct  flecs::script_builder
 Script builder interface. More...
 

Functions

int script_run (const char *name, const char *str) const
 Run script.
 
int script_run_file (const char *filename) const
 Run script from file.
 
script_builder script (const char *name=nullptr) const
 Build script.
 
flecs::string to_expr (flecs::entity_t tid, const void *value)
 Convert value to string.
 
template<typename T >
flecs::string to_expr (const T *value)
 Convert value to string.
 

Detailed Description

Data definition format for loading entity data.

Function Documentation

◆ script()

script_builder script ( const char * name = nullptr) const

Build script.

See also
ecs_script_init

Definition at line 31 of file mixin.inl.

◆ script_run()

int script_run ( const char * name,
const char * str ) const

Run script.

See also
ecs_script_run

Definition at line 17 of file mixin.inl.

◆ script_run_file()

int script_run_file ( const char * filename) const

Run script from file.

See also
ecs_script_run_file

Definition at line 24 of file mixin.inl.

◆ to_expr() [1/2]

template<typename T >
flecs::string to_expr ( const T * value)

Convert value to string.

Definition at line 43 of file mixin.inl.

◆ to_expr() [2/2]

flecs::string to_expr ( flecs::entity_t tid,
const void * value )

Convert value to string.

Definition at line 36 of file mixin.inl.