diff options
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); |
