1#include <nested_set_member.h>
2#include <stdio.h>
3
5 float x;
6 float y;
7});
8
10 Point start;
11 Point stop;
12});
13
14int main(int argc, char *argv[]) {
16
19
22
40
42 printf("%s\n", str);
43 ecs_os_free(str);
44
45
46
48}
FLECS_API const ecs_entity_t ecs_id(EcsDocDescription)
Component ID for EcsDocDescription.
FLECS_API char * ecs_ptr_to_expr(const ecs_world_t *world, ecs_entity_t type, const void *data)
Serialize value into expression string.
ecs_id_t ecs_entity_t
An entity identifier.
struct ecs_world_t ecs_world_t
A world is the container for all ECS data and supporting features.
ecs_entity_t ecs_new(ecs_world_t *world)
Create new entity ID.
#define ecs_ensure(world, entity, T)
Ensure entity has a component, return mutable pointer.
int ecs_fini(ecs_world_t *world)
Delete a world.
ecs_world_t * ecs_init_w_args(int argc, char *argv[])
Create a new world with arguments.