From c18970e8d1003a7b4b3b95b8ade07226bd235f0f Mon Sep 17 00:00:00 2001 From: troido Date: Thu, 6 Feb 2020 21:00:13 +0100 Subject: refactored into multiple classes --- src/room.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/room.rs') diff --git a/src/room.rs b/src/room.rs index 4fcf658..f7e09bf 100644 --- a/src/room.rs +++ b/src/room.rs @@ -28,7 +28,7 @@ use super::systems::{ controlinput::ControlInput, view::View }; -use super::compwrapper::CompWrapper; +use super::componentwrapper::ComponentWrapper; @@ -84,7 +84,7 @@ impl <'a, 'b>Room<'a, 'b> { template.build(self.world.create_entity()).with(Position::new(Pos{x, y})).build() } - pub fn add_complist(&mut self, template: &Vec, (x, y): (i32, i32)) -> Entity{ + pub fn add_complist(&mut self, template: &Vec, (x, y): (i32, i32)) -> Entity{ let mut builder = self.world.create_entity(); for comp in template { builder = comp.build(builder); -- cgit