diff options
| author | troido <troido@protonmail.com> | 2020-02-04 22:23:17 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-04 22:23:17 +0100 |
| commit | 323cd679cd29a8475c3b7486ce54ecd37620dbea (patch) | |
| tree | 1fc55c768a7b74644157c23580f54292e960c66a /src/components.rs | |
| parent | eb5997cbf94b1aa230cf4acb3008a7fe80ec36e0 (diff) | |
tried to implement deserialisation of entities
Diffstat (limited to 'src/components.rs')
| -rw-r--r-- | src/components.rs | 7 |
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} } } + |
