kubi/kubi-shared/src/entity.rs

19 lines
253 B
Rust
Raw Normal View History

2023-02-14 12:09:27 -06:00
use shipyard::Component;
#[derive(Component)]
pub struct Entity;
#[derive(Component)]
pub struct Health {
pub current: u8,
pub max: u8,
}
impl Health {
fn new(health: u8) -> Self {
Self {
current: health,
max: health
}
}
}