summaryrefslogtreecommitdiff
path: root/include/gUnkClass20.h
diff options
context:
space:
mode:
authorMax <mparisi@stevens.edu>2020-11-25 23:46:42 -0500
committerMax <mparisi@stevens.edu>2020-11-25 23:46:42 -0500
commit2023adf209156d9c461197eefac93b5216fbc2f3 (patch)
tree34c3b3f68968b6f18c1324d1364a398bbff4b653 /include/gUnkClass20.h
parentf048ac917bcb493fdabf03f0066cd252ba0f841b (diff)
rename file to gUnkClass20.cpp, condense code, and add comments
Diffstat (limited to 'include/gUnkClass20.h')
-rw-r--r--include/gUnkClass20.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/gUnkClass20.h b/include/gUnkClass20.h
new file mode 100644
index 0000000..141aff8
--- /dev/null
+++ b/include/gUnkClass20.h
@@ -0,0 +1,30 @@
+#ifndef POKEREVO_GUNKCLASS20_H
+#define POKEREVO_GUNKCLASS20_H
+
+// size == 0x4
+struct gUnkClass21
+{
+ u8 unk0;
+ u8 unk1;
+ u8 unk2;
+ u8 unk3;
+};
+
+// size == 0x8
+struct gUnkClass20
+{
+ u8 unk0; // index into an array of gUnkClass21.
+ // id?
+ u8 unk1; // func_801FB80C returns first instance where this is 0.
+ // "allocated" flag?
+ u8 unk2;
+ u8 unk3;
+ u32 unk4;
+
+ gUnkClass20* func_801E0810(u32 p2, u8 p3, u8 p4);
+ void func_801E0904();
+ void func_801E0978(gUnkClass21* p2) const;
+ void func_801E09DC(gUnkClass21* p2) const;
+};
+
+#endif //POKEREVO_GUNKCLASS20_H