diff options
Diffstat (limited to 'src/shared/cooldown.rs')
-rw-r--r-- | src/shared/cooldown.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/shared/cooldown.rs b/src/shared/cooldown.rs new file mode 100644 index 0000000..52f41de --- /dev/null +++ b/src/shared/cooldown.rs @@ -0,0 +1,15 @@ +use crate::shared::*; +use bevy::utils::Duration; +use serde::Deserialize; +use serde::Serialize; +use std::default::Default; + +#[derive(Component, Message, Serialize, Deserialize, Clone, Copy, PartialEq, Debug, Default)] +pub struct Cooldown { + pub a_cooldown: Duration, + pub q_cooldown: Duration, + pub w_cooldown: Duration, + pub e_cooldown: Duration, + pub d_cooldown: Duration, + pub f_cooldown: Duration, +} |