diff options
| author | troido <troido@protonmail.com> | 2020-02-28 16:41:11 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-28 16:41:11 +0100 |
| commit | c846e929a88837094d7a5383a306df1fec56c333 (patch) | |
| tree | 48ab058d58c090ff00199af6b3eef7d64c7c2c95 /src/components/mod.rs | |
| parent | b80036ef629e0803f3a70059a8fa12d1a2ae3b2d (diff) | |
more specific types!
Diffstat (limited to 'src/components/mod.rs')
| -rw-r--r-- | src/components/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/mod.rs b/src/components/mod.rs index 3b0167d..6fae490 100644 --- a/src/components/mod.rs +++ b/src/components/mod.rs @@ -22,7 +22,8 @@ use crate::{ controls::Control, Template, playerstate::RoomPos, - attack::Attack + attack::Attack, + Timestamp }; #[derive(Debug, Clone)] @@ -167,7 +168,7 @@ pub struct Fighter { pub struct Healing { pub delay: i64, pub health: i64, - pub next_heal: Option<i64> + pub next_heal: Option<Timestamp> } @@ -175,7 +176,7 @@ pub struct Healing { #[storage(HashMapStorage)] pub struct Volatile { pub delay: i64, - pub end_time: Option<i64> + pub end_time: Option<Timestamp> } #[derive(Component, Debug, Clone)] |
