diff options
| author | nathan <nathansmith@disroot.org> | 2026-01-10 10:25:32 +0000 |
|---|---|---|
| committer | nathan <nathansmith@disroot.org> | 2026-01-10 10:25:32 +0000 |
| commit | 013ac4a2f4ae24d71f425f31edd77a8e29ed1da8 (patch) | |
| tree | dffc4b36c7c94a734940d0e3fac3536be99c2ad6 /src/ui.h | |
| parent | 6e0fabd2798d7e602e243a35a922703cde7ef750 (diff) | |
| download | FindThings-013ac4a2f4ae24d71f425f31edd77a8e29ed1da8.tar.gz FindThings-013ac4a2f4ae24d71f425f31edd77a8e29ed1da8.tar.bz2 FindThings-013ac4a2f4ae24d71f425f31edd77a8e29ed1da8.zip | |
Working on inventory
Diffstat (limited to 'src/ui.h')
| -rw-r--r-- | src/ui.h | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -8,6 +8,7 @@ #define INTERACTION_COLUMN_MAX 80 #define INVENTORY_MAX 10 +#define INVENTORY_SPRITE_SIZE 42 typedef char InteractionItems[INTERACTION_MENU_MAX][INTERACTION_LABEL_MAX]; @@ -31,15 +32,9 @@ typedef struct { } InteractionMenu; typedef struct { - EntityId id; - AssetId texture; - int count; -} InventoryItem; - -typedef struct { Rectangle rect; bool visable; - InventoryItem items[INVENTORY_MAX]; + EntityItem items[INVENTORY_MAX]; int itemCount; } Inventory; @@ -68,7 +63,7 @@ void updateInteractionMenu(InteractionMenu* menu, Game* game); void initInventory(Inventory* inventory); void showInventory(Inventory* inventory); void hideInventory(Inventory* inventory); -void addItemToInventory(Inventory* inventory, InventoryItem item); +void addItemToInventory(Inventory* inventory, EntityItem item); void updateInventory(Inventory* inventory); #endif |
