summaryrefslogtreecommitdiff
path: root/src/componentwrapper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/componentwrapper.rs')
-rw-r--r--src/componentwrapper.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs
index 6da6d5a..07529fc 100644
--- a/src/componentwrapper.rs
+++ b/src/componentwrapper.rs
@@ -2,7 +2,7 @@
use std::collections::HashMap;
use specs::{Builder, EntityBuilder};
-use crate::components::{Visible, Blocking, Played};
+use crate::components::{Visible, Blocking, Player};
use crate::hashmap;
use crate::parameter::{Parameter, ParameterType};
@@ -11,7 +11,7 @@ use crate::parameter::{Parameter, ParameterType};
pub enum ComponentWrapper{
Visible(Visible),
Blocking(Blocking),
- Player(Played)
+ Player(Player)
}
impl ComponentWrapper {
@@ -31,7 +31,7 @@ impl ComponentWrapper {
height: parameters.remove("height")?.as_f64()?
})),
ComponentType::Blocking => Some(Self::Blocking(Blocking)),
- ComponentType::Player => Some(Self::Player(Played::new(
+ ComponentType::Player => Some(Self::Player(Player::new(
parameters.remove("name")?.as_str()?.to_string()
)))
}