1#include <custom_pipeline.h>
2#include <stdio.h>
3
4
5
6
7
8
9
10
11
12
14 (void)it;
15
16 printf("System ran!\n");
17}
18
19int main(int argc, char *argv[]) {
21
23
24
25
26
28 .query.terms = {
30 { .id = Physics }
31 }
32 });
33
34
36
37
39
40
42
44
45
46
47}
FLECS_API void ecs_set_pipeline(ecs_world_t *world, ecs_entity_t pipeline)
Set a custom pipeline.
FLECS_API bool ecs_progress(ecs_world_t *world, ecs_ftime_t delta_time)
Progress a world.
#define ecs_pipeline(world,...)
Convenience macro to create a pipeline.
#define ECS_SYSTEM(world, id, phase,...)
Declare and define a system.
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_TAG(world, id)
Declare and define a tag.
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.