summaryrefslogtreecommitdiff
path: root/include/npc.h
diff options
context:
space:
mode:
authorTal Hayon <talhayon1@gmail.com>2022-04-23 00:13:01 +0300
committerTal Hayon <talhayon1@gmail.com>2022-04-23 03:06:56 +0300
commit5347c5ddaf6bd4acf1abdb853041e611b33973fd (patch)
tree01ffa508023a819e9950adab60c32beecc35945d /include/npc.h
parenta957ee958028e378817fadb8945e68537437200a (diff)
Add DialogType and DialogFlagType enums
Diffstat (limited to 'include/npc.h')
-rw-r--r--include/npc.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/npc.h b/include/npc.h
index 20e66117..2be97262 100644
--- a/include/npc.h
+++ b/include/npc.h
@@ -19,6 +19,38 @@
#include "structures.h"
+typedef enum {
+ DIALOG_ROOM_FLAG,
+ DIALOG_LOCAL_FLAG,
+ DIALOG_GLOBAL_FLAG,
+ DIALOG_KINSTONE,
+ DIALOG_INVENTORY,
+} DialogFlagType;
+
+typedef enum {
+ DIALOG_NONE,
+ DIALOG_NORMAL,
+ DIALOG_SET_FLAG,
+ DIALOG_TOGGLE_FLAG,
+ DIALOG_CHECK_FLAG,
+ DIALOG_CALL_FUNC,
+ DIALOG_MINISH,
+} DialogType;
+
+typedef struct {
+ u32 flag : 12;
+ DialogFlagType flagType : 4;
+ DialogType type : 4;
+ u32 fromSelf : 1;
+ union {
+ struct {
+ u16 a;
+ u16 b;
+ } indices;
+ void (*func)(Entity* e);
+ } data;
+} Dialog;
+
void sub_0806EC20(Entity* ent);
void sub_0806EC38(void);
u32 sub_0806ED78(Entity* ent);