diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-04 18:31:40 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-04 18:31:40 -0300 |
| commit | 1e248d3dd18f7c6bfaf8066c4662facbbb89e8f9 (patch) | |
| tree | 8250335d5ad8176da05f7243052b9af85802c7ed /scripts/entities/actions/ItemAction.cs | |
| parent | 147bb12b5d48c5432aa1bd1cbe60b8435294445b (diff) | |
Itens na masmorra
Diffstat (limited to 'scripts/entities/actions/ItemAction.cs')
| -rw-r--r-- | scripts/entities/actions/ItemAction.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/entities/actions/ItemAction.cs b/scripts/entities/actions/ItemAction.cs new file mode 100644 index 0000000..54ff207 --- /dev/null +++ b/scripts/entities/actions/ItemAction.cs @@ -0,0 +1,15 @@ +using Godot; + +public partial class ItemAction : Action +{ + private ConsumableItem item; + public ItemAction(Actor actor, ConsumableItem item) : base(actor) + { + this.item = item; + } + + public override bool Perform() + { + return item.Activate(this); + } +}
\ No newline at end of file |
