- Rename
flecs_cdef.lua
toflecs.cdef.lua
- Implement
ecs_luajit_struct_cdef
in Lua and addflecs.World:ctype
to register a struct as a ctype - If any defines must be used, assert their value in
generate_cdef.py
- Use libclang to transform the flecs headers to strip unused declarations
- Expose
aux
table and its functions asflecs.aux
- Add
flecs.World:struct
function and ids ofecs_{u,i}_{8,16,32,64}_t
types (and others) toflecs.g
table. - Add subtable
g
toflecs
to hold global variables (e.g. global ids or enum values). - Add a
luajit_symbol_ref
member of typeecs_ref_t
to components to efficiently get the luajit symbol for a component. Then only cast types with that special member to their ctype.