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/controlinput.rs | |
| parent | f0153eefd580ec443b380504303620a61f24630b (diff) | |
merged Draw into View; renamed Position to Pos
Diffstat (limited to 'src/systems/controlinput.rs')
| -rw-r--r-- | src/systems/controlinput.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systems/controlinput.rs b/src/systems/controlinput.rs index 663174e..b672b4c 100644 --- a/src/systems/controlinput.rs +++ b/src/systems/controlinput.rs @@ -14,7 +14,7 @@ use specs::{ use super::super::components::{ Controller, Played, - Position + Pos }; use super::super::controls::{ @@ -39,7 +39,7 @@ impl <'a> System<'a> for ControlInput { let mut leaving = HashSet::new(); for action in &input.actions { match action { - Action::Join(name) => {new.assemblages.push((Position{x:10, y:10}, Box::new(Player::new(&name))));} + Action::Join(name) => {new.assemblages.push((Pos{x:10, y:10}, Box::new(Player::new(&name))));} Action::Leave(name) => {leaving.insert(name);} Action::Input(name, control) => {playercontrols.insert(name, control.clone());} } |
