summaryrefslogtreecommitdiff
path: root/src/systems/clear.rs
blob: 64588d38cf6e0de105d5d1ffbc95e06f51858809 (plain)
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();
	}
}