use anput::{bundle::DynamicBundle, universe::Universe};
use std::error::Error;
#[derive(Debug)]
struct Health;
#[derive(Debug)]
struct Strength;
#[derive(Debug)]
struct Mana;
fn main() -> Result<(), Box<dyn Error>> {
let mut universe = Universe::default();
let arthas = universe.simulation.spawn((Health, Strength))?;
let bundle = DynamicBundle::default()
.with_component(Health)
.unwrap()
.with_component(Strength)
.unwrap();
let lyra = universe.simulation.spawn(bundle)?;
universe.simulation.insert(arthas, (Mana,))?;
universe.simulation.remove::<(Strength, Health)>(arthas)?;
universe.simulation.despawn(arthas)?;
universe.simulation.despawn(lyra)?;
Ok(())
}