summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h
index e7e828aec..6fb9e2604 100644
--- a/include/global.h
+++ b/include/global.h
@@ -72,6 +72,39 @@ struct SecretBaseRecord
u8 partyEVs[6];
};
+struct WarpData
+{
+ s8 mapGroup;
+ s8 mapNum;
+ u8 warpId;
+ s16 x, y;
+};
+
+struct RamScriptData
+{
+ u8 magic;
+ u8 mapGroup;
+ u8 mapNum;
+ u8 objectId;
+ u8 script[995];
+};
+
+struct RamScript
+{
+ u32 checksum;
+ struct RamScriptData data;
+};
+
+struct SaveBlock1
+{
+ struct Coords16 pos;
+ struct WarpData location;
+ u8 filler[0x3684];
+ struct RamScript ramScript;
+};
+
+extern struct SaveBlock1 gSaveBlock1;
+
struct Time
{
s16 days;