summaryrefslogtreecommitdiff
path: root/include/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/types.h')
-rw-r--r--include/types.h37
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