| Bevy | bevyhealthsystem | | ------------- | ------------- | | 0.11 | 0.2.0 | | 0.10 | 0.1.1 |
An easy way to add a health system to your bevy's entity. NOTICE: This package is not entirely depend on bevy, the only "bevy thing" this package use is the Component struct. This is described in: NO BEVY section.
HealthSystem
struct.HealthSystem
struct just like any component for your entity.```rust use bevy::prelude::* use bevyhealthsystem::HealthSystem
fn spawn_player(mut commands: Commands) { commands.spawn(HealthSystem::new(100.0)); } ```
This package is not entirely depend on bevy, the only "bevy thing" this package use is the Component struct.
rust
use bevy::prelude::Component;
If you want to use this package independently with bevy, here's what to do.
I'm too lazy to add examples, check the docs. Should be easy to implement to your projects.
MIT