From e150d54ca90a8d1cc99ce4d1b8285f5ea971e279 Mon Sep 17 00:00:00 2001 From: Oxore Date: Sat, 2 Dec 2017 09:57:42 +0300 Subject: Yaml loader for text resources added, need to be involved --- include/common.h | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'include/common.h') 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 -- cgit v1.2.3