summaryrefslogtreecommitdiff
path: root/include/script.h
diff options
context:
space:
mode:
authoroctorock <79596758+octorock@users.noreply.github.com>2021-03-04 03:49:25 +0100
committeroctorock <79596758+octorock@users.noreply.github.com>2021-03-06 14:53:26 +0100
commit05b2edad405eb47a5f36ee09f705f0da04df0793 (patch)
tree99a419871bc2b0c57990ec9b66c79f0f47b26c97 /include/script.h
parentcdb6f5a17e19abe270e2bf7cd35255a3801c068b (diff)
Add notes to script.c
Diffstat (limited to 'include/script.h')
-rw-r--r--include/script.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/script.h b/include/script.h
index 9abc5291..416485b5 100644
--- a/include/script.h
+++ b/include/script.h
@@ -3,14 +3,24 @@
#include "global.h"
+typedef struct
+{
+ u16 command;
+ u16 metadata;
+} ScriptCommand;
+
+
typedef struct {
- u16* unk_00;
+ union {
+ u16* raw;
+ ScriptCommand* commands; // list of commands to execute
+ } unk_00;
u32 unk_04;
u32 unk_08;
u8 unk_0C[0x4]; // unused
u16 unk_10;
u16 unk_12;
- u32 unk_14;
+ u32 compareResult; // result of a compare script command
u8 unk_18;
u8 unk_19;
u8 unk_1A;