aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.h
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2026-01-20 13:39:03 +0000
committernathan <nathansmith@disroot.org>2026-01-20 13:39:03 +0000
commit602bfee943ac7810d0ca961851883c8909f5d7ff (patch)
tree7f790cdadd55a4e6766c6599415fddf7b4006840 /src/ui.h
parentf44d154d1372597742642596fe91c619613f81ef (diff)
downloadFindThings-602bfee943ac7810d0ca961851883c8909f5d7ff.tar.gz
FindThings-602bfee943ac7810d0ca961851883c8909f5d7ff.tar.bz2
FindThings-602bfee943ac7810d0ca961851883c8909f5d7ff.zip
Intractable inventory items
Diffstat (limited to 'src/ui.h')
-rw-r--r--src/ui.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui.h b/src/ui.h
index 738f630..eadaff0 100644
--- a/src/ui.h
+++ b/src/ui.h
@@ -45,8 +45,13 @@ typedef struct {
typedef struct {
Rectangle rect;
bool visable;
+
InventoryItem items[INVENTORY_MAX];
int itemCount;
+
+ // NULL if not interacting.
+ Entity* interactingEntity;
+ int interactingIndex;
} Inventory;
// Interaction chat procedures.
@@ -70,6 +75,10 @@ void showInteractionMenu(InteractionMenu* menu);
void hideInteractionMenu(InteractionMenu* menu);
void updateInteractionMenu(InteractionMenu* menu, Game* game);
+// Generic interaction thingies.
+void startInteraction(Game* game, EntityId entityId);
+void endInteraction(Game* game);
+
// Inventory
void initInventory(Inventory* inventory, const Settings* settings);
void showInventory(Inventory* inventory, Game* game);