thallium_ecs
A basic ECS that ive been working on
Example code
use ;
let mut app = new;
let person1 = app.create_entity;
app.add_component;
let person2 = app.create_entity;
app.add_component;
// create a system set that prints all people
let mut print_people = new;
print_people.register_system;
// print out all the people
// should print:
//
// 'Alice' is 23 years old
// 'Bob' is 25 years old
app.run;
// increment the ages of all people
app.run;
// another way to increment the ages of all people would be
app.run;
// print out all the people again
// should print:
//
// 'Alice' is 25 years old
// 'Bob' is 27 years old
app.run;