summaryrefslogtreecommitdiff
path: root/csrc/card.h
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-10-01 10:59:09 +0800
committerIru Cai <mytbk920423@gmail.com>2018-10-01 10:59:09 +0800
commitbc58f791a33784ffa25e6aa105ced8245fb91ac7 (patch)
tree338a17196102d1afa584d7629dd0a483590b6eb9 /csrc/card.h
parentbe9144f843df829fd2529c7ebf518749856eab90 (diff)
downloadrich4-bc58f791a33784ffa25e6aa105ced8245fb91ac7.tar.xz
move cards table to 0x0047fdf2
Diffstat (limited to 'csrc/card.h')
-rw-r--r--csrc/card.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/csrc/card.h b/csrc/card.h
new file mode 100644
index 0000000..b1a086e
--- /dev/null
+++ b/csrc/card.h
@@ -0,0 +1,14 @@
+#include <stdint.h>
+
+typedef struct
+{
+ const char *name_ptr;
+ uint8_t init_amount;
+ uint8_t price;
+ uint8_t f6;
+ uint8_t f7;
+} rich4_card;
+extern rich4_card cards_table[];
+
+typedef int (*card_func)(void);
+extern card_func card_functions[];