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/room.rs | |
| parent | f0153eefd580ec443b380504303620a61f24630b (diff) | |
merged Draw into View; renamed Position to Pos
Diffstat (limited to 'src/room.rs')
| -rw-r--r-- | src/room.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/room.rs b/src/room.rs index dc8c27d..df14549 100644 --- a/src/room.rs +++ b/src/room.rs @@ -11,7 +11,7 @@ use specs::{ }; use super::controls::Action; -use super::components::Position; +use super::components::Pos; use super::assemblages::Assemblage; use super::worldmessages::WorldMessage; use super::resources::{ @@ -21,7 +21,6 @@ use super::resources::{ NewEntities }; use super::systems::{ - draw::Draw, moving::Move, clearcontrols::ClearControllers, makefloor::MakeFloor, @@ -49,9 +48,8 @@ impl <'a, 'b>Room<'a, 'b> { .with(ControlInput, "controlinput", &[]) .with(MakeFloor, "makefloor", &[]) .with(Move, "move", &["makefloor", "controlinput"]) - .with(Draw, "draw", &["move"]) .with(ClearControllers, "clearcontrollers", &["move"]) - .with(View, "view", &["draw"]) + .with(View, "view", &["move"]) .build(); dispatcher.setup(&mut world); @@ -86,7 +84,7 @@ impl <'a, 'b>Room<'a, 'b> { } pub fn add_obj(&mut self, template: &dyn Assemblage, (x, y): (i32, i32)) -> Entity { - template.build(self.world.create_entity()).with(Position{x, y}).build() + template.build(self.world.create_entity()).with(Pos{x, y}).build() } } |
