use crate::shared::*; #[derive(Component, Message, Serialize, Deserialize, Clone, Copy, Debug, PartialEq)] pub struct Health(pub f32); pub const MAX_HEALTH: f32 = 100.; impl Default for Health { fn default() -> Self { Health(MAX_HEALTH) } }