aboutsummaryrefslogtreecommitdiffstats
path: root/src/gack.h
diff options
context:
space:
mode:
authornathansmith117 <thenathansmithsmith@gmail.com>2024-05-13 19:14:59 +0000
committernathansmith117 <thenathansmithsmith@gmail.com>2024-05-13 19:14:59 +0000
commitcffca0d01bf99d2eb917f6dc923555ffa0011d88 (patch)
treedc88c2c5e10c0721d44a2f961da6b93142e5ef5e /src/gack.h
parent05b40b9046d7dea6f52872021932bda8855250c4 (diff)
downloadPenguinYippies-cffca0d01bf99d2eb917f6dc923555ffa0011d88.tar.gz
PenguinYippies-cffca0d01bf99d2eb917f6dc923555ffa0011d88.tar.bz2
PenguinYippies-cffca0d01bf99d2eb917f6dc923555ffa0011d88.zip
Gack working well
Diffstat (limited to 'src/gack.h')
-rw-r--r--src/gack.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gack.h b/src/gack.h
index fc1ed86..1bb4382 100644
--- a/src/gack.h
+++ b/src/gack.h
@@ -4,17 +4,20 @@
#define GACK_H
#define GACK_NAME_MAX 256
+#define GACK_ENTRY_COUNT 2
typedef struct GackEntry GackEntry;
typedef void (*GackEntryCB)(GackEntry* entry, Game* game);
+// A entry for a upgrade.
typedef struct GackEntry {
- char description;
+ char description[GACK_NAME_MAX];
int cost;
GackEntryCB callback;
} GackEntry;
typedef struct Gack {
+ GackEntry entries[GACK_ENTRY_COUNT];
} Gack;
void initGack(Gack* gack);