Flecs v4.0
A fast entity component system (ECS) for C & C++
|
Macros | |
#define | ecs_insert(world, ...) ecs_entity(world, { .set = ecs_values(__VA_ARGS__)}) |
#define | ecs_set_ptr(world, entity, component, ptr) ecs_set_id(world, entity, ecs_id(component), sizeof(component), ptr) |
#define | ecs_set(world, entity, component, ...) ecs_set_id(world, entity, ecs_id(component), sizeof(component), &(component)__VA_ARGS__) |
#define | ecs_set_pair(world, subject, First, second, ...) |
#define | ecs_set_pair_second(world, subject, first, Second, ...) |
#define | ecs_set_override(world, entity, T, ...) |
#define | ecs_emplace(world, entity, T, is_new) (ECS_CAST(T*, ecs_emplace_id(world, entity, ecs_id(T), is_new))) |
#define | ecs_emplace_pair(world, entity, First, second, is_new) (ECS_CAST(First*, ecs_emplace_id(world, entity, ecs_pair_t(First, second), is_new))) |
#define | ecs_get(world, entity, T) (ECS_CAST(const T*, ecs_get_id(world, entity, ecs_id(T)))) |
#define | ecs_get_pair(world, subject, First, second) |
#define | ecs_get_pair_second(world, subject, first, Second) |
#define | ecs_get_mut(world, entity, T) (ECS_CAST(T*, ecs_get_mut_id(world, entity, ecs_id(T)))) |
#define | ecs_get_mut(world, entity, T) (ECS_CAST(T*, ecs_get_mut_id(world, entity, ecs_id(T)))) |
#define | ecs_get_mut_pair(world, subject, First, second) |
#define | ecs_get_mut_pair_second(world, subject, first, Second) |
#define | ecs_ensure(world, entity, T) (ECS_CAST(T*, ecs_ensure_id(world, entity, ecs_id(T)))) |
#define | ecs_ensure(world, entity, T) (ECS_CAST(T*, ecs_ensure_id(world, entity, ecs_id(T)))) |
#define | ecs_ensure_pair(world, subject, First, second) |
#define | ecs_ensure_pair(world, subject, First, second) |
#define | ecs_ensure_pair_second(world, subject, first, Second) |
#define | ecs_ensure_pair_second(world, subject, first, Second) |
#define | ecs_modified(world, entity, component) ecs_modified_id(world, entity, ecs_id(component)) |
#define | ecs_modified_pair(world, subject, first, second) ecs_modified_id(world, subject, ecs_pair(first, second)) |
#define | ecs_record_get(world, record, T) (ECS_CAST(const T*, ecs_record_get_id(world, record, ecs_id(T)))) |
#define | ecs_record_has(world, record, T) (ecs_record_has_id(world, record, ecs_id(T))) |
#define | ecs_record_get_pair(world, record, First, second) |
#define | ecs_record_get_pair_second(world, record, first, Second) |
#define | ecs_record_ensure(world, record, T) (ECS_CAST(T*, ecs_record_ensure_id(world, record, ecs_id(T)))) |
#define | ecs_record_ensure_pair(world, record, First, second) |
#define | ecs_record_ensure_pair_second(world, record, first, Second) |
#define | ecs_ref_init(world, entity, T) ecs_ref_init_id(world, entity, ecs_id(T)) |
#define | ecs_ref_get(world, ref, T) (ECS_CAST(T*, ecs_ref_get_id(world, ref, ecs_id(T)))) |
#define ecs_emplace | ( | world, | |
entity, | |||
T, | |||
is_new ) (ECS_CAST(T*, ecs_emplace_id(world, entity, ecs_id(T), is_new))) |
#define ecs_emplace_pair | ( | world, | |
entity, | |||
First, | |||
second, | |||
is_new ) (ECS_CAST(First*, ecs_emplace_id(world, entity, ecs_pair_t(First, second), is_new))) |
#define ecs_ensure | ( | world, | |
entity, | |||
T ) (ECS_CAST(T*, ecs_ensure_id(world, entity, ecs_id(T)))) |
#define ecs_ensure | ( | world, | |
entity, | |||
T ) (ECS_CAST(T*, ecs_ensure_id(world, entity, ecs_id(T)))) |
#define ecs_ensure_pair | ( | world, | |
subject, | |||
First, | |||
second ) |
#define ecs_ensure_pair | ( | world, | |
subject, | |||
First, | |||
second ) |
#define ecs_ensure_pair_second | ( | world, | |
subject, | |||
first, | |||
Second ) |
#define ecs_ensure_pair_second | ( | world, | |
subject, | |||
first, | |||
Second ) |
#define ecs_get | ( | world, | |
entity, | |||
T ) (ECS_CAST(const T*, ecs_get_id(world, entity, ecs_id(T)))) |
#define ecs_get_mut | ( | world, | |
entity, | |||
T ) (ECS_CAST(T*, ecs_get_mut_id(world, entity, ecs_id(T)))) |
#define ecs_get_mut | ( | world, | |
entity, | |||
T ) (ECS_CAST(T*, ecs_get_mut_id(world, entity, ecs_id(T)))) |
#define ecs_get_mut_pair | ( | world, | |
subject, | |||
First, | |||
second ) |
#define ecs_get_mut_pair_second | ( | world, | |
subject, | |||
first, | |||
Second ) |
#define ecs_get_pair | ( | world, | |
subject, | |||
First, | |||
second ) |
#define ecs_get_pair_second | ( | world, | |
subject, | |||
first, | |||
Second ) |
#define ecs_insert | ( | world, | |
... ) ecs_entity(world, { .set = ecs_values(__VA_ARGS__)}) |
#define ecs_modified | ( | world, | |
entity, | |||
component ) ecs_modified_id(world, entity, ecs_id(component)) |
#define ecs_modified_pair | ( | world, | |
subject, | |||
first, | |||
second ) ecs_modified_id(world, subject, ecs_pair(first, second)) |
#define ecs_record_ensure | ( | world, | |
record, | |||
T ) (ECS_CAST(T*, ecs_record_ensure_id(world, record, ecs_id(T)))) |
#define ecs_record_ensure_pair | ( | world, | |
record, | |||
First, | |||
second ) |
#define ecs_record_ensure_pair_second | ( | world, | |
record, | |||
first, | |||
Second ) |
#define ecs_record_get | ( | world, | |
record, | |||
T ) (ECS_CAST(const T*, ecs_record_get_id(world, record, ecs_id(T)))) |
#define ecs_record_get_pair | ( | world, | |
record, | |||
First, | |||
second ) |
#define ecs_record_get_pair_second | ( | world, | |
record, | |||
first, | |||
Second ) |
#define ecs_record_has | ( | world, | |
record, | |||
T ) (ecs_record_has_id(world, record, ecs_id(T))) |
#define ecs_ref_get | ( | world, | |
ref, | |||
T ) (ECS_CAST(T*, ecs_ref_get_id(world, ref, ecs_id(T)))) |
#define ecs_ref_init | ( | world, | |
entity, | |||
T ) ecs_ref_init_id(world, entity, ecs_id(T)) |
#define ecs_set | ( | world, | |
entity, | |||
component, | |||
... ) ecs_set_id(world, entity, ecs_id(component), sizeof(component), &(component)__VA_ARGS__) |
#define ecs_set_override | ( | world, | |
entity, | |||
T, | |||
... ) |
#define ecs_set_pair | ( | world, | |
subject, | |||
First, | |||
second, | |||
... ) |
#define ecs_set_pair_second | ( | world, | |
subject, | |||
first, | |||
Second, | |||
... ) |
#define ecs_set_ptr | ( | world, | |
entity, | |||
component, | |||
ptr ) ecs_set_id(world, entity, ecs_id(component), sizeof(component), ptr) |