summaryrefslogtreecommitdiff
path: root/src/room.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-02-06 21:00:13 +0100
committertroido <troido@protonmail.com>2020-02-06 21:00:13 +0100
commitc18970e8d1003a7b4b3b95b8ade07226bd235f0f (patch)
treede0e1d331d0134ab8c7ecaf3569c589a0de07208 /src/room.rs
parent837d5b3a2c70d240b053644ef2e5c3264d453756 (diff)
refactored into multiple classes
Diffstat (limited to 'src/room.rs')
-rw-r--r--src/room.rs4
1 files changed, 2 insertions, 2 deletions
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<CompWrapper>, (x, y): (i32, i32)) -> Entity{
+ pub fn add_complist(&mut self, template: &Vec<ComponentWrapper>, (x, y): (i32, i32)) -> Entity{
let mut builder = self.world.create_entity();
for comp in template {
builder = comp.build(builder);