diff options
author | Cameron Hall <cameronghall@cox.net> | 2019-08-01 20:02:32 -0500 |
---|---|---|
committer | Cameron Hall <cameronghall@cox.net> | 2019-08-01 20:02:32 -0500 |
commit | 3878495887f2693c810228694b417f4e4d954476 (patch) | |
tree | 3520f05e949c598b7466c24c4e7b1339bef65120 /include/types.h | |
parent | c427a4af00fa46f33f7167977ea834218c37cfa8 (diff) |
move all externs to header files
Diffstat (limited to 'include/types.h')
-rw-r--r-- | include/types.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/types.h b/include/types.h new file mode 100644 index 0000000..af7a749 --- /dev/null +++ b/include/types.h @@ -0,0 +1,37 @@ +#ifndef GUARD_TYPES_H +#define GUARD_TYPES_H + +// Place all discovered types (structs, unions, etc.) in this file. + +typedef void (*StateFunc)(void); +typedef void (*IntrFunc)(void); + +struct MainUnk2E8 +{ + u16 unk0; + u16 unk2; +}; + +struct SpriteSet +{ + u16 count; + u8 oamData[0]; +}; + +struct OamDataSimple +{ + u16 oamId; + s16 xOffset; + s16 yOffset; +}; + +struct SpriteGroup +{ + u16 available; + s16 baseX; + s16 baseY; + struct OamDataSimple oam[MAX_SPRITES_IN_GROUP]; +}; +// size: 0xB8 + +#endif // GUARD_TYPES_H |