Crate bevy_health_system
source ·Expand description
Fast and easy way to add a health system to any bevy’s entity A solid foundation for any health system.
Quick start.
- Import the
HealthSystem
struct. - Add
HealthSystem
struct just like any component for your entity.
use bevy::prelude::*;
use bevy_health_system::HealthSystem;
fn spawn_player(mut commands: Commands) {
commands.spawn(HealthSystem::new(100.0));
}
Useful links
Websites
- Download - Crates: https://crates.io/crates/bevy_health_system
- Repository - Github: https://github.com/thaiminh2022/bevy_health_system
- Documentation - Docrs: https://docs.rs/bevy_health_system/latest/bevy_health_system
Structs
License
MIT
Re-exports
pub use self::health_system::HealthSystem;
pub use self::health_system::HealthSystemModifier;
pub use self::health_system::HealthSystemReviveHealType;
pub use self::health_system::HealthSystemState;