summaryrefslogtreecommitdiff
path: root/scripts/InputHandling
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-10-24 21:25:15 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-10-24 21:25:15 -0300
commit639cd8cef403e9e66bf31e7888e786effac2b292 (patch)
treea1b3872a91ad599a71629d0d62c72125138c5c14 /scripts/InputHandling
parent52c32a24044aa574c9e7bf7aa4e2499349cc36b2 (diff)
refactor: Sistema de itens reescrito
Em tese, este novo sistema é mais fácil de serializar. Descanse em paz pergaminhos, eu não quero reimplementá-los neste novo sistema.
Diffstat (limited to 'scripts/InputHandling')
-rw-r--r--scripts/InputHandling/InventoryInputHandler.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/InputHandling/InventoryInputHandler.cs b/scripts/InputHandling/InventoryInputHandler.cs
index 1eb7f3a..fef0df0 100644
--- a/scripts/InputHandling/InventoryInputHandler.cs
+++ b/scripts/InputHandling/InventoryInputHandler.cs
@@ -15,8 +15,8 @@ public partial class InventoryInputHandler : BaseInputHandler
private Map.Map map;
private InventoryMenu inventoryMenu;
- private ConsumableItem activationItem = null;
- private ConsumableItem dropItem = null;
+ private Item activationItem = null;
+ private Item dropItem = null;
public override void Enter()
{
@@ -63,12 +63,12 @@ public partial class InventoryInputHandler : BaseInputHandler
GetParent<InputHandler>().SetInputHandler(InputHandlers.MainGame);
}
- private void OnItemActivate(ConsumableItem item)
+ private void OnItemActivate(Item item)
{
activationItem = item;
}
- private void OnItemDrop(ConsumableItem item)
+ private void OnItemDrop(Item item)
{
dropItem = item;
}