mirror of
https://github.com/zeldaret/ph
synced 2026-07-08 13:46:28 -04:00
Mangle ActorRupee actor type and resource
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
};
|
||||
@@ -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 */
|
||||
};
|
||||
Reference in New Issue
Block a user