summaryrefslogtreecommitdiff
path: root/src/components.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-02-11 01:53:05 +0100
committertroido <troido@protonmail.com>2020-02-11 01:53:05 +0100
commit62138ca19acdef140359745ebee41be5e4c5ce09 (patch)
treea59c0d70d8b024693b2c57fc42ba3d1665623eb6 /src/components.rs
parent97850d8c1ee3522ccce30ef31ed91601da8c0730 (diff)
health is now also shown (but never changed)
Diffstat (limited to 'src/components.rs')
-rw-r--r--src/components.rs6
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
+}
+