diff options
Diffstat (limited to 'src/systems/clear.rs')
| -rw-r--r-- | src/systems/clear.rs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/systems/clear.rs b/src/systems/clear.rs index 64588d3..8d15835 100644 --- a/src/systems/clear.rs +++ b/src/systems/clear.rs @@ -1,19 +1,24 @@ use specs::{ Write, + WriteStorage, System }; use crate::{ - resources::Ground + resources::Ground, + components::TriggerBox }; pub struct Clear; impl <'a> System<'a> for Clear { - type SystemData = - Write<'a, Ground>; - fn run(&mut self, mut ground: Self::SystemData) { + type SystemData = ( + Write<'a, Ground>, + WriteStorage<'a, TriggerBox> + ); + fn run(&mut self, (mut ground, mut triggerboxes): Self::SystemData) { ground.changes.clear(); + triggerboxes.clear(); } } |
