aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared/stats.rs
blob: 239405e62b2c1630defd1d5b71798f1290b26b36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::shared::*;

#[derive(Clone, Copy, Serialize, Deserialize, PartialEq, Debug)]
pub struct Stats {
    pub attack_range: f32,
    pub attack_speed: f32,
    pub max_health: f32,
    pub movement_speed: f32,
}

#[derive(Component, Message, Clone, Copy, Serialize, Deserialize, PartialEq, Debug)]
pub struct BaseStats(pub Stats);

#[derive(Component, Message, Clone, Copy, Serialize, Deserialize, PartialEq, Debug)]
pub struct EffectiveStats(pub Stats);