1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
use specs::{ Write, System }; use crate::{ resources::Ground }; pub struct Clear; impl <'a> System<'a> for Clear { type SystemData = Write<'a, Ground>; fn run(&mut self, mut ground: Self::SystemData) { ground.changes.clear(); } }