XECS
An Entity-Component-System library
Example
// Define two components struct
// Component is Send + Sync + 'static
;
;
// create an empty world
let mut world = new;
// generate 10 entities
for _ in 0..10
// print all postions
for pos in world.
// filter some entities need to be hidden
let ids = world.
.with_id
.filter
.map
.;
// attach hidden to id
for id in ids
// make a full-owning group to accelerate the query
world.make_group;
// only print postions with id that is not hidden
for in world.