diff options
author | huderlem <huderlem@gmail.com> | 2019-08-03 20:06:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-03 20:06:17 -0500 |
commit | 71442a109c3859d1a1e1418924a1a56823b9631c (patch) | |
tree | ef04c74a98cafa7da2b3556d6af4067555b9e498 /include/types.h | |
parent | c427a4af00fa46f33f7167977ea834218c37cfa8 (diff) | |
parent | b97a0894bfa099ba5ec8363f8cdc08a1c0d9e6db (diff) |
Merge pull request #3 from camthesaxman/headers
move all externs to header files and update m4a library
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 |