18 *
this = iter.field<T>(index);
29 "invalid nullptr dereference of component type %s",
32 "index %d out of range for array of component type %s",
33 index, _::type_name<T>());
35 "non-zero index invalid for shared field of component type %s",
48 "invalid nullptr dereference of component type %s",
61 "invalid nullptr dereference of component type %s",
64 "-> operator invalid for an array with >1 element of "
65 "component type %s, use [row] instead",
#define ecs_assert(condition, error_code,...)
Assert.
#define ECS_INVALID_OPERATION
Invalid operation error code.
#define ECS_INVALID_PARAMETER
Invalid parameter error code.
#define ECS_COLUMN_INDEX_OUT_OF_RANGE
Column index out of range error code.
T * operator->() const
Return the first element of the component array.
T & operator*() const
Return the first element of the component array.
field(T *array, size_t count, bool is_shared=false)
Create a field from a component array.
T & operator[](size_t index) const
Return an element in the component array.