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

#[derive(Clone, Copy, Serialize, Deserialize, PartialEq, Debug)]
pub struct Stats {
    pub attack_range: f32,
    pub movement_speed: f32,
    pub max_health: 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);