wecs_core/system/
system.rs1use crate::world::World;
2
3pub type BoxedSystem = Box<dyn System>;
4
5pub trait System {
6 fn run(&mut self, world: &mut World);
7}
8
9pub trait IntoSystem<Marker> {
10 type System: System;
11
12 fn into_system(self) -> Self::System;
13}