diff options
| author | troido <troido@protonmail.com> | 2020-02-21 20:01:24 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-21 20:01:24 +0100 |
| commit | 7e9784f23d1920640152d1bc99a0725f6f22d529 (patch) | |
| tree | 8b4e33f67b827d1a5123e82877f61c1a6805aeb7 /src/components.rs | |
| parent | 8169718d7e0b189acdf69c14ee817d2c6aa684e1 (diff) | |
visible component now also has a name
Diffstat (limited to 'src/components.rs')
| -rw-r--r-- | src/components.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components.rs b/src/components.rs index 2adddaa..9d387f1 100644 --- a/src/components.rs +++ b/src/components.rs @@ -29,7 +29,8 @@ impl Component for Position { #[derive(Debug, Clone)] pub struct Visible { pub sprite: Sprite, - pub height: f64 + pub height: f64, + pub name: String } impl Component for Visible { type Storage = FlaggedStorage<Self, VecStorage<Self>>; |
