summaryrefslogtreecommitdiff
path: root/include/Actor
diff options
context:
space:
mode:
authorAetias <aetias@outlook.com>2024-04-07 15:04:51 +0200
committerAetias <aetias@outlook.com>2024-04-07 15:04:51 +0200
commit392ccb357e8b9bf5d12eae74577b5778bff7c9cd (patch)
tree0ffad327db6bd3395529636681393af469a35cf2 /include/Actor
parentc628010c04d156d3795a6b998c5dccce608e664d (diff)
Mangle `ActorRupee` actor type and resource
Diffstat (limited to 'include/Actor')
-rw-r--r--include/Actor/ActorRupee.hpp5
-rw-r--r--include/Actor/ActorType.hpp17
2 files changed, 22 insertions, 0 deletions
diff --git a/include/Actor/ActorRupee.hpp b/include/Actor/ActorRupee.hpp
index 93205035..93c3082c 100644
--- a/include/Actor/ActorRupee.hpp
+++ b/include/Actor/ActorRupee.hpp
@@ -4,7 +4,9 @@
#include "types.h"
#include "lib/math.h"
+#include "System/Resource.hpp"
#include "Actor/Actor.hpp"
+#include "Actor/ActorType.hpp"
#include "Item/Item.hpp"
typedef u32 RupeeId;
@@ -22,6 +24,9 @@ enum RupeeId_ {
class ActorRupee : public Actor {
public:
+ static Resource gResource;
+ static ActorType gType;
+
/* 000 (base) */
/* 158 */ RupeeId mRupeeId;
/* 15c */ unk16 mUnk_15c;
diff --git a/include/Actor/ActorType.hpp b/include/Actor/ActorType.hpp
new file mode 100644
index 00000000..b004a044
--- /dev/null
+++ b/include/Actor/ActorType.hpp
@@ -0,0 +1,17 @@
+#pragma once
+
+#include "global.h"
+#include "types.h"
+
+#include "Actor/Actor.hpp"
+
+typedef Actor* (*ActorCreateFunc)();
+
+struct ActorType {
+ /* 00 */ char type[4];
+ /* 04 */ ActorCreateFunc create;
+ /* 08 */ unk32 unk_08;
+ /* 0c */ unk32 unk_0c;
+ /* 10 */ ActorType *next;
+ /* 14 */
+};