aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared/cooldown.rs
blob: 52f41de9533b30272bb8dc471270982cb9b25597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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,
}