generalised item use system
This commit is contained in:
parent
f26adf352e
commit
65d728b75a
4 changed files with 96 additions and 33 deletions
|
|
@ -70,7 +70,7 @@ impl SufferDamage {
|
|||
pub struct Item {}
|
||||
|
||||
#[derive(Component, Debug)]
|
||||
pub struct Potion {
|
||||
pub struct ProvidesHealing {
|
||||
pub heal_amount: i32,
|
||||
}
|
||||
|
||||
|
|
@ -91,6 +91,9 @@ pub struct WantsToDropItem {
|
|||
}
|
||||
|
||||
#[derive(Component, Debug)]
|
||||
pub struct WantsToDrinkPotion {
|
||||
pub potion: Entity,
|
||||
pub struct WantsToUseItem {
|
||||
pub item: Entity,
|
||||
}
|
||||
|
||||
#[derive(Component, Debug)]
|
||||
pub struct Consumable {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue