aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared/cooldown.rs
blob: f27d7fc338d109ca226c42150d295d58b33e32b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 r_cooldown: Duration,
    pub d_cooldown: Duration,
    pub f_cooldown: Duration,
    pub g_cooldown: Duration,
}