1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::resource::FlowManager; use core::ecs::{System, Write}; #[derive(Default)] pub struct FlowSystem; impl<'s> System<'s> for FlowSystem { type SystemData = Write<'s, FlowManager>; fn run(&mut self, mut manager: Self::SystemData) { drop(manager.process_events()); } }