diff options
| author | troido <troido@protonmail.com> | 2020-02-03 16:36:52 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-03 16:36:52 +0100 |
| commit | 19ce5319e2250b7b0e1a188f69d24de282a85a7f (patch) | |
| tree | 2e51064f5e1dfa82304c558c56ab907255c953bd /src/systems/makefloor.rs | |
| parent | f0153eefd580ec443b380504303620a61f24630b (diff) | |
merged Draw into View; renamed Position to Pos
Diffstat (limited to 'src/systems/makefloor.rs')
| -rw-r--r-- | src/systems/makefloor.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systems/makefloor.rs b/src/systems/makefloor.rs index 864f204..ba3727d 100644 --- a/src/systems/makefloor.rs +++ b/src/systems/makefloor.rs @@ -9,7 +9,7 @@ use specs::{ }; use super::super::components::{ - Position + Pos }; use super::super::resources::{ @@ -19,7 +19,7 @@ use super::super::resources::{ pub struct MakeFloor; impl <'a> System<'a> for MakeFloor { - type SystemData = (Entities<'a>, Write<'a, Floor>, ReadStorage<'a, Position>); + type SystemData = (Entities<'a>, Write<'a, Floor>, ReadStorage<'a, Pos>); fn run(&mut self, (entities, mut floor, positions): Self::SystemData) { floor.cells.clear(); for (ent, pos) in (&entities, &positions).join() { |
