From bddaf2daaa7f67c2d46a6a611421fc9db6eef83d Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Mon, 11 Mar 2024 11:58:19 -0600 Subject: Shop going well --- src/shop.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/shop.h') diff --git a/src/shop.h b/src/shop.h index bae42b3..e9555a5 100644 --- a/src/shop.h +++ b/src/shop.h @@ -2,10 +2,24 @@ // The fullname is waaayyy toooo looonnnng for lazy lazy me +#define SHOP_ENTRY_COUNT 1 + #ifndef SHOP_H #define SHOP_H +typedef void (*ShopyEntryCB)(Game* game); + +typedef struct ShopEntry { + Texture* texture; + int cost; + ShopyEntryCB callback; +} ShopEntry; + typedef struct Shop { + ShopEntry entries[SHOP_ENTRY_COUNT]; + + // Some silly textures. + Texture penguinLol; } Shop; void initShop(Shop* shop, Game* game); -- cgit v1.2.3