![]() |
Flecs v4.0
A fast entity component system (ECS) for C & C++
|
Macros | |
| #define | ecs_set_hooks(world, T, ...) |
| #define | ecs_get_hooks(world, T) |
| #define | ECS_CTOR(type, var, ...) |
| Declare a constructor. | |
| #define | ECS_DTOR(type, var, ...) |
| Declare a destructor. | |
| #define | ECS_COPY(type, dst_var, src_var, ...) |
| Declare a copy action. | |
| #define | ECS_MOVE(type, dst_var, src_var, ...) |
| Declare a move action. | |
| #define | ECS_ON_ADD(type, ptr, ...) |
| Declare component hooks. | |
| #define | ECS_ON_REMOVE(type, ptr, ...) |
| #define | ECS_ON_SET(type, ptr, ...) |
| #define | ecs_ctor(type) |
| #define | ecs_dtor(type) |
| #define | ecs_copy(type) |
| #define | ecs_move(type) |
| #define | ecs_on_set(type) |
| #define | ecs_on_add(type) |
| #define | ecs_on_remove(type) |
| #define ECS_COPY | ( | type, | |
| dst_var, | |||
| src_var, | |||
| ... ) |
Declare a copy action.
Example:
| #define ECS_CTOR | ( | type, | |
| var, | |||
| ... ) |
Declare a constructor.
Example:
| #define ECS_DTOR | ( | type, | |
| var, | |||
| ... ) |
Declare a destructor.
Example:
| #define ecs_get_hooks | ( | world, | |
| T ) |
| #define ECS_MOVE | ( | type, | |
| dst_var, | |||
| src_var, | |||
| ... ) |
Declare a move action.
Example:
| #define ECS_ON_ADD | ( | type, | |
| ptr, | |||
| ... ) |
| #define ECS_ON_REMOVE | ( | type, | |
| ptr, | |||
| ... ) |
| #define ECS_ON_SET | ( | type, | |
| ptr, | |||
| ... ) |
| #define ecs_set_hooks | ( | world, | |
| T, | |||
| ... ) |