![]() |
Flecs v4.1
A fast entity component system (ECS) for C & C++
|
Macros | |
| #define | ecs_set_hooks(world, T, ...) |
| Set component hooks. | |
| #define | ecs_get_hooks(world, T) |
| Get component hooks. | |
| #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 an on_add hook. | |
| #define | ECS_ON_REMOVE(type, ptr, ...) |
| Declare an on_remove hook. | |
| #define | ECS_ON_SET(type, ptr, ...) |
| Declare an on_set hook. | |
| #define | ecs_ctor(type) |
| Map from typename to constructor function name. | |
| #define | ecs_dtor(type) |
| Map from typename to destructor function name. | |
| #define | ecs_copy(type) |
| Map from typename to copy function name. | |
| #define | ecs_move(type) |
| Map from typename to move function name. | |
| #define | ecs_on_set(type) |
| Map from typename to on_set function name. | |
| #define | ecs_on_add(type) |
| Map from typename to on_add function name. | |
| #define | ecs_on_remove(type) |
| Map from typename to on_remove function name. | |
| #define ECS_COPY | ( | type, | |
| dst_var, | |||
| src_var, | |||
| ... ) |
Declare a copy action.
Example:
| #define ecs_copy | ( | type | ) |
| #define ECS_CTOR | ( | type, | |
| var, | |||
| ... ) |
Declare a constructor.
Example:
| #define ecs_ctor | ( | type | ) |
| #define ECS_DTOR | ( | type, | |
| var, | |||
| ... ) |
Declare a destructor.
Example:
| #define ecs_dtor | ( | type | ) |
| #define ecs_get_hooks | ( | world, | |
| T ) |
Get component hooks.
| #define ECS_MOVE | ( | type, | |
| dst_var, | |||
| src_var, | |||
| ... ) |
Declare a move action.
Example:
| #define ecs_move | ( | type | ) |
| #define ECS_ON_ADD | ( | type, | |
| ptr, | |||
| ... ) |
Declare an on_add hook.
Example:
| #define ecs_on_add | ( | type | ) |
| #define ECS_ON_REMOVE | ( | type, | |
| ptr, | |||
| ... ) |
Declare an on_remove hook.
| #define ecs_on_remove | ( | type | ) |
| #define ECS_ON_SET | ( | type, | |
| ptr, | |||
| ... ) |
Declare an on_set hook.
| #define ecs_on_set | ( | type | ) |
| #define ecs_set_hooks | ( | world, | |
| T, | |||
| ... ) |
Set component hooks.