summaryrefslogtreecommitdiff
path: root/src/components.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-02-04 22:23:17 +0100
committertroido <troido@protonmail.com>2020-02-04 22:23:17 +0100
commit323cd679cd29a8475c3b7486ce54ecd37620dbea (patch)
tree1fc55c768a7b74644157c23580f54292e960c66a /src/components.rs
parenteb5997cbf94b1aa230cf4acb3008a7fe80ec36e0 (diff)
tried to implement deserialisation of entities
Diffstat (limited to 'src/components.rs')
-rw-r--r--src/components.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components.rs b/src/components.rs
index 50cb13f..7517af9 100644
--- a/src/components.rs
+++ b/src/components.rs
@@ -28,7 +28,7 @@ impl Component for Position {
#[derive(Debug, Clone)]
pub struct Visible {
pub sprite: String,
- pub height: f32
+ pub height: f64
}
impl Component for Visible {
type Storage = FlaggedStorage<Self, VecStorage<Self>>;
@@ -37,10 +37,10 @@ impl Component for Visible {
#[derive(Component, Debug)]
pub struct Controller(pub Control);
-#[derive(Component, Debug)]
+#[derive(Component, Debug, Clone)]
pub struct Blocking;
-#[derive(Component, Debug)]
+#[derive(Component, Debug, Clone)]
pub struct Played {
pub name: String,
pub is_new: bool
@@ -50,3 +50,4 @@ impl Played {
Played{name, is_new: true}
}
}
+