diff options
| author | nathan <nathansmith@disroot.org> | 2026-01-20 13:39:03 +0000 |
|---|---|---|
| committer | nathan <nathansmith@disroot.org> | 2026-01-20 13:39:03 +0000 |
| commit | 602bfee943ac7810d0ca961851883c8909f5d7ff (patch) | |
| tree | 7f790cdadd55a4e6766c6599415fddf7b4006840 /src/ui.h | |
| parent | f44d154d1372597742642596fe91c619613f81ef (diff) | |
| download | FindThings-602bfee943ac7810d0ca961851883c8909f5d7ff.tar.gz FindThings-602bfee943ac7810d0ca961851883c8909f5d7ff.tar.bz2 FindThings-602bfee943ac7810d0ca961851883c8909f5d7ff.zip | |
Intractable inventory items
Diffstat (limited to 'src/ui.h')
| -rw-r--r-- | src/ui.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); |
