23 type() : world_(nullptr), type_(nullptr) { }
80 if (type_ && type_->
count) {
89 if (type_ && type_->
count) {
#define ecs_assert(condition, error_code,...)
Assert.
#define ECS_OUT_OF_RANGE
Out of range error code.
#define ECS_INVALID_PARAMETER
Invalid parameter error code.
ecs_world_t world_t
World type.
char * ecs_type_str(const ecs_world_t *world, const ecs_type_t *type)
Convert a type to a string.
A type is a list of (component) IDs.
ecs_id_t * array
Array with IDs.
int32_t count
Number of elements in array.
Class that wraps around a flecs::id_t.
const flecs::id_t * end() const
Get an iterator to the end of the type's ID array.
flecs::id_t * array() const
Return a pointer to the ID array.
int32_t count() const
Return the number of IDs in the type.
flecs::string str() const
Convert the type to a comma-separated string.
type()
Default constructor.
flecs::id get(int32_t index) const
Get the ID at a specified index in the type.
type(world_t *world, const type_t *t)
Construct a type from a world and C type pointer.
const flecs::id_t * begin() const
Get an iterator to the beginning of the type's ID array.