blob: c01c839a4c69c5206d0e7ed09f6c0f7314101522 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#include "gameCommon.h"
#include <raylib.h>
// The fullname is waaayyy toooo looonnnng for lazy lazy me
#define SHOP_ENTRY_COUNT 2
#ifndef SHOP_H
#define SHOP_H
typedef struct ShopEntry ShopEntry;
typedef void (*ShopyEntryCB)(ShopEntry* entry, 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;
Texture clicker;
} Shop;
void initShop(Shop* shop, Game* game);
void updateShop(Shop* shop, Game* game);
void closeShop(Shop* shop);
#endif
|