diff options
author | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-03-11 17:58:19 +0000 |
---|---|---|
committer | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-03-11 17:58:19 +0000 |
commit | bddaf2daaa7f67c2d46a6a611421fc9db6eef83d (patch) | |
tree | 89c2586f6f64c1d689236e60e5816ab71d60cea8 /src/shop.h | |
parent | 57a682c295eb665dfa935031446df255471f8edd (diff) | |
download | PenguinYippies-bddaf2daaa7f67c2d46a6a611421fc9db6eef83d.tar.gz PenguinYippies-bddaf2daaa7f67c2d46a6a611421fc9db6eef83d.tar.bz2 PenguinYippies-bddaf2daaa7f67c2d46a6a611421fc9db6eef83d.zip |
Shop going well
Diffstat (limited to 'src/shop.h')
-rw-r--r-- | src/shop.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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); |