From 602bfee943ac7810d0ca961851883c8909f5d7ff Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 20 Jan 2026 06:39:03 -0700 Subject: Intractable inventory items --- src/ui.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/ui.h') 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); -- cgit v1.2.3