diff options
author | YamaArashi <shadow962@live.com> | 2016-09-19 23:49:22 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-09-19 23:49:22 -0700 |
commit | 0b2a61e5d84e8a9950004c8d76ad8556e334f6c4 (patch) | |
tree | 9c6c31de37ba0dbcee99b8093f07d127d1de81e6 /include/global.h | |
parent | 573fa4cd845aae6d95719812e0fa39de2ffb07a9 (diff) |
WIP decompilation of script functions
Diffstat (limited to 'include/global.h')
-rw-r--r-- | include/global.h | 33 |
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; |