![]() |
Flecs v3.1
A fast entity component system (ECS) for C & C++
|
Data definition format for loading entity data. More...
Functions | |
FLECS_API int | ecs_plecs_from_str (ecs_world_t *world, const char *name, const char *str) |
Parse plecs string. | |
FLECS_API int | ecs_plecs_from_file (ecs_world_t *world, const char *filename) |
Parse plecs file. | |
Data definition format for loading entity data.
FLECS_API int ecs_plecs_from_file | ( | ecs_world_t * | world, |
const char * | filename | ||
) |
Parse plecs file.
This parses a plecs file and instantiates the entities in the world. This operation is equivalent to loading the file contents and passing it to ecs_plecs_from_str.
world | The world. |
filename | The plecs file name. |
FLECS_API int ecs_plecs_from_str | ( | ecs_world_t * | world, |
const char * | name, | ||
const char * | str | ||
) |
Parse plecs string.
This parses a plecs string and instantiates the entities in the world.
world | The world. |
name | The script name (typically the file). |
str | The plecs string. |