use bevy::prelude::*; use lightyear::prelude::*; use serde::*; #[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, pub armor: f32, pub magic_resist: 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);