Macros | |
| #define | ecs_insert(world, ...) |
| Insert a new entity with a list of component values. | |
| #define | ecs_set_ptr(world, entity, component, ptr) |
| Set a component using a pointer. | |
| #define | ecs_set(world, entity, component, ...) |
| Set a component value. | |
| #define | ecs_set_pair(world, subject, First, second, ...) |
| Set the first element of a pair. | |
| #define | ecs_set_pair_second(world, subject, first, Second, ...) |
| Set the second element of a pair. | |
| #define | ecs_set_override(world, entity, T, ...) |
| Set a component with auto-override. | |
| #define | ecs_emplace(world, entity, T, is_new) |
| Emplace a component. | |
| #define | ecs_emplace_pair(world, entity, First, second, is_new) |
| Emplace the first element of a pair. | |
| #define | ecs_get(world, entity, T) |
| Get a component. | |
| #define | ecs_get_pair(world, subject, First, second) |
| Get the first element of a pair. | |
| #define | ecs_get_pair_second(world, subject, first, Second) |
| Get the second element of a pair. | |
| #define | ecs_get_mut(world, entity, T) |
| Get a mutable pointer to a component. | |
| #define | ecs_get_mut(world, entity, T) |
| Get a mutable pointer to a component. | |
| #define | ecs_get_mut_pair(world, subject, First, second) |
| Get a mutable pointer to the first element of a pair. | |
| #define | ecs_get_mut_pair_second(world, subject, first, Second) |
| Get a mutable pointer to the second element of a pair. | |
| #define | ecs_ensure(world, entity, T) |
| Ensure entity has a component, return mutable pointer. | |
| #define | ecs_ensure_pair(world, subject, First, second) |
| Ensure entity has the first element of a pair, return mutable pointer. | |
| #define | ecs_ensure_pair_second(world, subject, first, Second) |
| Ensure entity has the second element of a pair, return mutable pointer. | |
| #define | ecs_modified(world, entity, component) |
| Signal that a component has been modified. | |
| #define | ecs_modified_pair(world, subject, first, second) |
| Signal that a pair has been modified. | |
| #define | ecs_ref_init(world, entity, T) |
| Initialize a ref for a component. | |
| #define | ecs_ref_get(world, ref, T) |
| Get a component from a ref. | |
| #define | ecs_ref_modified(world, ref, T) |
| Signal that the component of a ref has been modified. | |
| #define ecs_emplace | ( | world, | |
| entity, | |||
| T, | |||
| is_new ) |
Emplace a component.
| #define ecs_emplace_pair | ( | world, | |
| entity, | |||
| First, | |||
| second, | |||
| is_new ) |
Emplace the first element of a pair.
| #define ecs_ensure | ( | world, | |
| entity, | |||
| T ) |
Ensure entity has a component, return mutable pointer.
| #define ecs_ensure_pair | ( | world, | |
| subject, | |||
| First, | |||
| second ) |
Ensure entity has the first element of a pair, return mutable pointer.
| #define ecs_ensure_pair_second | ( | world, | |
| subject, | |||
| first, | |||
| Second ) |
Ensure entity has the second element of a pair, return mutable pointer.
| #define ecs_get | ( | world, | |
| entity, | |||
| T ) |
Get a component.
| #define ecs_get_mut | ( | world, | |
| entity, | |||
| T ) |
Get a mutable pointer to a component.
| #define ecs_get_mut | ( | world, | |
| entity, | |||
| T ) |
Get a mutable pointer to a component.
| #define ecs_get_mut_pair | ( | world, | |
| subject, | |||
| First, | |||
| second ) |
Get a mutable pointer to the first element of a pair.
| #define ecs_get_mut_pair_second | ( | world, | |
| subject, | |||
| first, | |||
| Second ) |
Get a mutable pointer to the second element of a pair.
| #define ecs_get_pair | ( | world, | |
| subject, | |||
| First, | |||
| second ) |
Get the first element of a pair.
| #define ecs_get_pair_second | ( | world, | |
| subject, | |||
| first, | |||
| Second ) |
Get the second element of a pair.
| #define ecs_insert | ( | world, | |
| ... ) |
Insert a new entity with a list of component values.
| #define ecs_modified | ( | world, | |
| entity, | |||
| component ) |
Signal that a component has been modified.
| #define ecs_modified_pair | ( | world, | |
| subject, | |||
| first, | |||
| second ) |
Signal that a pair has been modified.
| #define ecs_ref_get | ( | world, | |
| ref, | |||
| T ) |
Get a component from a ref.
| #define ecs_ref_init | ( | world, | |
| entity, | |||
| T ) |
Initialize a ref for a component.
| #define ecs_ref_modified | ( | world, | |
| ref, | |||
| T ) |
Signal that the component of a ref has been modified.
| #define ecs_set | ( | world, | |
| entity, | |||
| component, | |||
| ... ) |
Set a component value.
| #define ecs_set_override | ( | world, | |
| entity, | |||
| T, | |||
| ... ) |
Set a component with auto-override.
| #define ecs_set_pair | ( | world, | |
| subject, | |||
| First, | |||
| second, | |||
| ... ) |
Set the first element of a pair.
| #define ecs_set_pair_second | ( | world, | |
| subject, | |||
| first, | |||
| Second, | |||
| ... ) |
Set the second element of a pair.
| #define ecs_set_ptr | ( | world, | |
| entity, | |||
| component, | |||
| ptr ) |
Set a component using a pointer.