diff options
| author | troido <troido@protonmail.com> | 2020-02-11 01:53:05 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-11 01:53:05 +0100 |
| commit | 62138ca19acdef140359745ebee41be5e4c5ce09 (patch) | |
| tree | a59c0d70d8b024693b2c57fc42ba3d1665623eb6 /src/components.rs | |
| parent | 97850d8c1ee3522ccce30ef31ed91601da8c0730 (diff) | |
health is now also shown (but never changed)
Diffstat (limited to 'src/components.rs')
| -rw-r--r-- | src/components.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/components.rs b/src/components.rs index 45c8340..185459a 100644 --- a/src/components.rs +++ b/src/components.rs @@ -82,3 +82,9 @@ pub struct Item { pub name: String } +#[derive(Component, Debug, Clone)] +pub struct Health { + pub health: i64, + pub maxhealth: i64 +} + |
