ecs-tiny
A minimal ECS supporting entity and component insertion/removal, association, and single-type iteration.
Usages
// Define an component:
;
// Create new ecs instance and inserts new entity:
let mut world = new;
let entity_key0 = world.insert_entity;
let entity_key1 = world.insert_entity;
// Inserts new component associated with specified entity:
assert_eq!;
assert_eq!;
// Iterates over all components of specified type (single type only):
for ComponentA in world.
// Removes specified component:
world..unwrap;
// Removes specified entity:
world.remove_entity.unwrap;