|
| #define | ecs_insert(world, ...) ecs_entity(world, { .set = ecs_values(__VA_ARGS__)}) |
| | Insert a new entity with a list of component values.
|
| |
| #define | ecs_set_ptr(world, entity, component, ptr) ecs_set_id(world, entity, ecs_id(component), sizeof(component), ptr) |
| | Set a component using a pointer.
|
| |
| #define | ecs_set(world, entity, component, ...) ecs_set_id(world, entity, ecs_id(component), sizeof(component), &(component)__VA_ARGS__) |
| | 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) (ECS_CAST(T*, ecs_emplace_id(world, entity, ecs_id(T), sizeof(T), is_new))) |
| | Emplace a component.
|
| |
| #define | ecs_emplace_pair(world, entity, First, second, is_new) (ECS_CAST(First*, ecs_emplace_id(world, entity, ecs_pair_t(First, second), sizeof(First), is_new))) |
| | Emplace the first element of a pair.
|
| |
| #define | ecs_get(world, entity, T) (ECS_CAST(const T*, ecs_get_id(world, entity, ecs_id(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) (ECS_CAST(T*, ecs_get_mut_id(world, entity, ecs_id(T)))) |
| | Get a mutable pointer to a component.
|
| |
| #define | ecs_get_mut(world, entity, T) (ECS_CAST(T*, ecs_get_mut_id(world, entity, ecs_id(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) (ECS_CAST(T*, ecs_ensure_id(world, entity, ecs_id(T), sizeof(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) ecs_modified_id(world, entity, ecs_id(component)) |
| | Signal that a component has been modified.
|
| |
| #define | ecs_modified_pair(world, subject, first, second) ecs_modified_id(world, subject, ecs_pair(first, second)) |
| | Signal that a pair has been modified.
|
| |
| #define | ecs_record_get(world, record, T) (ECS_CAST(const T*, ecs_record_get_id(world, record, ecs_id(T)))) |
| | Get a component from a record.
|
| |
| #define | ecs_record_has(world, record, T) (ecs_record_has_id(world, record, ecs_id(T))) |
| | Test if a record has a component.
|
| |
| #define | ecs_record_get_pair(world, record, First, second) |
| | Get the first element of a pair from a record.
|
| |
| #define | ecs_record_get_pair_second(world, record, first, Second) |
| | Get the second element of a pair from a record.
|
| |
| #define | ecs_record_ensure(world, record, T) (ECS_CAST(T*, ecs_record_ensure_id(world, record, ecs_id(T)))) |
| | Ensure a component on a record, return mutable pointer.
|
| |
| #define | ecs_record_ensure_pair(world, record, First, second) |
| | Ensure the first element of a pair on a record, return mutable pointer.
|
| |
| #define | ecs_record_ensure_pair_second(world, record, first, Second) |
| | Ensure the second element of a pair on a record, return mutable pointer.
|
| |
| #define | ecs_ref_init(world, entity, T) ecs_ref_init_id(world, entity, ecs_id(T)) |
| | Initialize a ref for a component.
|
| |
| #define | ecs_ref_get(world, ref, T) (ECS_CAST(T*, ecs_ref_get_id(world, ref, ecs_id(T)))) |
| | Get a component from a ref.
|
| |