👏 kudo
WORK IN PROGRESS
An Entity Component System for Rust. Fast, easy, and predictable.
- No
unsafe
- No dependencies
- Fewer than 1k lines of code (so far)
;
;
;
let mut world = new;
// Create entities with components.
world.spawn;
world.spawn;
// Find every entity with a `Name` and a `Health` component.
let mut query = world..unwrap;
// Iterate through all entities with those components.
for in query.iter
Kudo
was inspired by the library hecs
. If you need a more feature-rich ECS, give hecs
a try!