diff options
| author | troido <troido@protonmail.com> | 2020-02-08 19:22:00 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-08 19:22:00 +0100 |
| commit | b56add981c2f520789b97d1ee6f71dae41e8c900 (patch) | |
| tree | dca7d8795c2a51f56173153c286c4dadcf8daff4 /src/systems/controlinput.rs | |
| parent | 3ebe9e6f792a0457c6f3b37b6e9d92c83f8694e2 (diff) | |
no templates in the world; only pre-entities
Diffstat (limited to 'src/systems/controlinput.rs')
| -rw-r--r-- | src/systems/controlinput.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/systems/controlinput.rs b/src/systems/controlinput.rs index 0771b1e..712c98b 100644 --- a/src/systems/controlinput.rs +++ b/src/systems/controlinput.rs @@ -14,11 +14,7 @@ use specs::{ use crate::components::{Controller, Player, Removed}; use crate::controls::{Control, Action}; use crate::resources::{Input, NewEntities, Spawn}; -use crate::hashmap; -use crate::template::Template; -use crate::parameter::Parameter; -// use crate::assemblages::Player; pub struct ControlInput; @@ -48,9 +44,9 @@ impl <'a> System<'a> for ControlInput { for action in &input.actions { match action { Action::Join(name) => { - new.templates.push(( + new.ents.push(( spawn.pos, - Template::new("player", hashmap!("name".to_string() => Parameter::String(name.to_string()))) + crate::player::make_player(name) )); } Action::Leave(name) => {leaving.insert(name);} |
