summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2017-12-02 09:57:42 +0300
committerOxore <oxore@protonmail.com>2017-12-02 09:57:42 +0300
commite150d54ca90a8d1cc99ce4d1b8285f5ea971e279 (patch)
tree5408bf8981b4b7ebf27ccc18a4896be3ea2b1903 /include/common.h
parentf3703c8096d985c57fee9a716cd0af4d2c6bc89f (diff)
Yaml loader for text resources added, need to be involved
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h27
1 files changed, 24 insertions, 3 deletions
diff --git a/include/common.h b/include/common.h
index 5f64a2b..136edaa 100644
--- a/include/common.h
+++ b/include/common.h
@@ -61,10 +61,31 @@ typedef struct Game {
int level;
} Game;
+/* ======== text.[c|h] types =========== */
+
+typedef struct List {
+ void *obj;
+ void *next;
+ void *prev;
+} List;
+
+typedef struct Pair {
+ void *k;
+ void *v;
+} Pair;
+
+typedef struct KeyMap {
+ Pair *pair;
+ void *next;
+ void *prev;
+} KeyMap;
+
typedef struct Text {
- sfFont *font;
- sfText *text;
- sfVector2f pos;
+ char *font;
+ char *type;
+ char *scene;
+ char *text;
+ void *sfText;
} Text;
#endif