blob: f4a288a7b7063185e236e8d6f75bf5387165b3e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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)
}
}
|