From 323cd679cd29a8475c3b7486ce54ecd37620dbea Mon Sep 17 00:00:00 2001 From: troido Date: Tue, 4 Feb 2020 22:23:17 +0100 Subject: tried to implement deserialisation of entities --- src/components.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/components.rs') 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>; @@ -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} } } + -- cgit