19 lines
313 B
Rust
19 lines
313 B
Rust
use bevy::prelude::*;
|
|
use common::{ChampionDefinition, ChampionItems, ItemSlot};
|
|
|
|
#[derive(Bundle)]
|
|
pub struct ChampionInstance<Def: ChampionDefinition> {
|
|
def: Def,
|
|
hp: Hp,
|
|
|
|
items: ChampionItems,
|
|
}
|
|
|
|
#[derive(Component)]
|
|
pub struct Hp {
|
|
current: u64,
|
|
max: u64,
|
|
}
|
|
|
|
#[derive(Component)]
|
|
pub struct Mana {}
|