Adding names of the person who talks on the dialog

This commit is contained in:
Anonymus Raccoon
2020-04-15 15:13:36 +02:00
parent 34e8091682
commit c11962b462
6 changed files with 70 additions and 55 deletions
+7 -2
View File
@@ -10,9 +10,14 @@
#include "component.h"
struct dialog_line {
char *name;
char *text;
};
struct dialog_holder {
gc_component base;
char **text;
struct dialog_line **text;
bool single_usage;
bool has_seen;
struct tile *tile;
@@ -24,7 +29,7 @@ struct dialog_manager {
gc_system base;
int dialog_id;
int current_line;
char *current_text;
struct dialog_line *current_text;
struct dialog_holder *current_dialog;
};