diff options
Diffstat (limited to 'src/components/mod.rs')
| -rw-r--r-- | src/components/mod.rs | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/components/mod.rs b/src/components/mod.rs index e65bcc6..3b0167d 100644 --- a/src/components/mod.rs +++ b/src/components/mod.rs @@ -50,7 +50,14 @@ impl Component for Visible { } #[derive(Component, Debug)] -pub struct Controller(pub Control); +pub struct Controller { + pub control: Control +} + +#[derive(Default, Component, Debug, Clone)] +pub struct Movable { + pub cooldown: i64 +} #[derive(Default, Component, Debug, Clone)] #[storage(NullStorage)] @@ -151,7 +158,8 @@ pub struct Trap { #[derive(Component, Debug, Clone)] #[storage(HashMapStorage)] pub struct Fighter { - pub attack: Attack + pub attack: Attack, + pub cooldown: i64 } #[derive(Component, Debug, Clone)] @@ -170,4 +178,10 @@ pub struct Volatile { pub end_time: Option<i64> } +#[derive(Component, Debug, Clone)] +#[storage(HashMapStorage)] +pub struct ControlCooldown { + pub amount: i64 +} + |
