1#include <hierarchy.h>
2#include <stdio.h>
3
4
5
6
7int main(int argc, char *argv[]) {
9
10
16
20
21
22
27
29 printf("instance engine: %s\n", path);
30 ecs_os_free(path);
31
33 printf("instance cockpit: %s\n", path);
34 ecs_os_free(path);
35
36
37
38
39
41}
void ecs_add_id(ecs_world_t *world, ecs_entity_t entity, ecs_id_t component)
Add a (component) ID to an entity.
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.
#define ecs_add_pair(world, subject, first, second)
Add a pair to an entity.
#define ecs_entity(world,...)
Shorthand for creating an entity with ecs_entity_init().
#define ecs_get_path(world, child)
Get path from root.
ecs_entity_t ecs_lookup_child(const ecs_world_t *world, ecs_entity_t parent, const char *name)
Look up a child entity by name.
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.