From c846e929a88837094d7a5383a306df1fec56c333 Mon Sep 17 00:00:00 2001 From: troido Date: Fri, 28 Feb 2020 16:41:11 +0100 Subject: more specific types! --- src/components/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/components/mod.rs') 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 + pub next_heal: Option } @@ -175,7 +176,7 @@ pub struct Healing { #[storage(HashMapStorage)] pub struct Volatile { pub delay: i64, - pub end_time: Option + pub end_time: Option } #[derive(Component, Debug, Clone)] -- cgit