summaryrefslogtreecommitdiff
path: root/include/darray.h
diff options
context:
space:
mode:
authorMax <mparisi@stevens.edu>2020-09-15 17:13:00 -0400
committerMax <mparisi@stevens.edu>2020-09-15 17:13:00 -0400
commit67fd727a3c293215c644bb690bad1db0df67046f (patch)
tree21720e999d6630c04c6d971906b56340075b2931 /include/darray.h
parent7000f90b2f33dbc2325b6da49c7e3cfc5510e845 (diff)
TableLookup, TableMapSafe, TableMapSafe2. Added darray.h header
Diffstat (limited to 'include/darray.h')
-rw-r--r--include/darray.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/darray.h b/include/darray.h
new file mode 100644
index 0000000..09c9db8
--- /dev/null
+++ b/include/darray.h
@@ -0,0 +1,25 @@
+#ifndef POKEREVO_DARRAY_H
+#define POKEREVO_DARRAY_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+// size is at least 0x18 bytes
+typedef struct unkStruct2 {
+ s32 unk0; // TODO: number of elements in array
+ s32 unk4;
+ u32 unk8; // TODO: size of each element
+ s32 unkC;
+ s32 unk10;
+ char *unk14; // TODO: pointer to start of array
+} unkStruct2;
+
+
+void *ArrayNth(unkStruct2 *p1, s32 p2);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_DARRAY_H