Mangle ActorRupee actor type and resource

This commit is contained in:
Aetias
2024-04-07 15:04:51 +02:00
parent c628010c04
commit 392ccb357e
8 changed files with 70 additions and 22 deletions
+5
View File
@@ -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;
+17
View File
@@ -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 */
};
+13
View File
@@ -0,0 +1,13 @@
#pragma once
#include "global.h"
#include "types.h"
typedef void (*ResourceCleanupFunc)(void *object);
struct Resource {
/* 0 */ Resource *next;
/* 4 */ ResourceCleanupFunc cleanup;
/* 8 */ void *object;
/* c */
};