aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.h
diff options
context:
space:
mode:
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);