diff options
author | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-05-13 19:14:59 +0000 |
---|---|---|
committer | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-05-13 19:14:59 +0000 |
commit | cffca0d01bf99d2eb917f6dc923555ffa0011d88 (patch) | |
tree | dc88c2c5e10c0721d44a2f961da6b93142e5ef5e /src/gack.h | |
parent | 05b40b9046d7dea6f52872021932bda8855250c4 (diff) | |
download | PenguinYippies-cffca0d01bf99d2eb917f6dc923555ffa0011d88.tar.gz PenguinYippies-cffca0d01bf99d2eb917f6dc923555ffa0011d88.tar.bz2 PenguinYippies-cffca0d01bf99d2eb917f6dc923555ffa0011d88.zip |
Gack working well
Diffstat (limited to 'src/gack.h')
-rw-r--r-- | src/gack.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |