![]() |
Flecs v4.1
A fast entity component system (ECS) for C & C++
|
Script builder interface. More...
#include <builder.hpp>
Public Member Functions | |
| script_builder (flecs::world_t *world, const char *name=nullptr) | |
| Construct a script builder. | |
| script_builder & | code (const char *str) |
| Set the script code. | |
| script_builder & | filename (const char *str) |
| Set the script filename. | |
| flecs::entity | run () const |
| Run the script and return the script entity. | |
Protected Attributes | |
| flecs::world_t * | world_ |
| ecs_script_desc_t | desc_ |
Script builder interface.
Definition at line 16 of file builder.hpp.
|
inline |
Construct a script builder.
| world | The world. |
| name | Optional name for the script entity. |
Definition at line 21 of file builder.hpp.
|
inline |
Set the script code.
Definition at line 35 of file builder.hpp.
|
inline |
Set the script filename.
Definition at line 41 of file builder.hpp.
|
inline |
|
protected |
Definition at line 51 of file builder.hpp.
|
protected |
Definition at line 50 of file builder.hpp.