Add DialogType and DialogFlagType enums

This commit is contained in:
Tal Hayon
2022-04-23 00:13:01 +03:00
parent a957ee9580
commit 5347c5ddaf
24 changed files with 516 additions and 461 deletions
+32
View File
@@ -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);
-14
View File
@@ -175,20 +175,6 @@ typedef struct {
} struct_02034480;
extern struct_02034480 gUnk_02034480;
typedef struct {
u32 flag : 12;
u32 flagType : 4;
u32 type : 4;
u32 unk : 1;
union {
struct {
u16 a;
u16 b;
} indices;
void (*func)(Entity* e);
} data;
} Dialog;
extern u16 gBG0Buffer[0x400];
extern u16 gBG1Buffer[0x400];
extern u16 gBG2Buffer[0x400];