mirror of
https://github.com/zeldaret/mm.git
synced 2026-08-09 10:52:09 -04:00
InitVars -> Profile (#1697)
* ActorProfile * EffectSsProfile * TransitionProfile * variables.txt
This commit is contained in:
+2
-2
@@ -30,7 +30,7 @@ typedef struct {
|
||||
/* 0x2 */ Vec3s unk_2; // scale
|
||||
} struct_80124618; // size = 0x8
|
||||
|
||||
typedef struct ActorInit {
|
||||
typedef struct ActorProfile {
|
||||
/* 0x00 */ s16 id;
|
||||
/* 0x02 */ u8 type;
|
||||
/* 0x04 */ u32 flags;
|
||||
@@ -40,7 +40,7 @@ typedef struct ActorInit {
|
||||
/* 0x14 */ ActorFunc destroy;
|
||||
/* 0x18 */ ActorFunc update;
|
||||
/* 0x1C */ ActorFunc draw;
|
||||
} ActorInit; // size = 0x20
|
||||
} ActorProfile; // size = 0x20
|
||||
|
||||
typedef void (*ActorShadowFunc)(struct Actor* actor, struct Lights* mapper, struct PlayState* play);
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
DECLARE_OVERLAY_SEGMENT(Arrow_Fire)
|
||||
#define AM_FIELD_SIZE SEGMENT_SIZE(ovl_Arrow_Fire)
|
||||
|
||||
struct ActorInit;
|
||||
struct ActorProfile;
|
||||
|
||||
#define DEFINE_ACTOR(_name, enumValue, _allocType, _debugName) enumValue,
|
||||
#define DEFINE_ACTOR_INTERNAL(_name, enumValue, _allocType, _debugName) enumValue,
|
||||
@@ -35,7 +35,7 @@ typedef struct ActorOverlay {
|
||||
/* 0x08 */ void* vramStart;
|
||||
/* 0x0C */ void* vramEnd;
|
||||
/* 0x10 */ void* loadedRamAddr; // original name: "allocp"
|
||||
/* 0x14 */ struct ActorInit* initInfo;
|
||||
/* 0x14 */ struct ActorProfile* profile;
|
||||
/* 0x18 */ char* name;
|
||||
/* 0x1C */ u16 allocType; // bit 0: don't allocate memory, use actorContext->0x250? bit 1: Always keep loaded?
|
||||
/* 0x1E */ s8 numLoaded; // original name: "clients"
|
||||
|
||||
@@ -33,17 +33,17 @@ typedef u32 (*EffectSsInitFunc)(struct PlayState* play, u32 index, struct Effect
|
||||
typedef void(*EffectSsUpdateFunc)(struct PlayState* play, u32 index, struct EffectSs* particle);
|
||||
typedef void(*EffectSsDrawFunc)(struct PlayState* play, u32 index, struct EffectSs* particle);
|
||||
|
||||
typedef struct EffectSsInit {
|
||||
typedef struct EffectSsProfile {
|
||||
/* 0x0 */ u32 type;
|
||||
/* 0x4 */ EffectSsInitFunc init;
|
||||
} EffectSsInit; // size = 0x8
|
||||
} EffectSsProfile; // size = 0x8
|
||||
|
||||
typedef struct EffectSsOverlay {
|
||||
/* 0x00 */ RomFile file;
|
||||
/* 0x08 */ void* vramStart;
|
||||
/* 0x0C */ void* vramEnd;
|
||||
/* 0x10 */ void* loadedRamAddr;
|
||||
/* 0x14 */ EffectSsInit* initInfo;
|
||||
/* 0x14 */ EffectSsProfile* profile;
|
||||
/* 0x18 */ u8 unk18; // Always 1?
|
||||
} EffectSsOverlay; // size = 0x1C
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ typedef struct TransitionTile {
|
||||
|
||||
#define TC_SET_PARAMS (1 << 7)
|
||||
|
||||
typedef struct TransitionInit {
|
||||
typedef struct TransitionProfile {
|
||||
/* 0x00 */ void* (*init)(void* transition);
|
||||
/* 0x04 */ void (*destroy)(void* transition);
|
||||
/* 0x08 */ void (*update)(void* transition, s32 updateRate);
|
||||
@@ -61,7 +61,7 @@ typedef struct TransitionInit {
|
||||
/* 0x18 */ void (*setColor)(void* transition, u32 color);
|
||||
/* 0x1C */ void (*setEnvColor)(void* transition, u32 color);
|
||||
/* 0x20 */ s32 (*isDone)(void* transition);
|
||||
} TransitionInit; // size = 0x24
|
||||
} TransitionProfile; // size = 0x24
|
||||
|
||||
typedef struct TransitionOverlay {
|
||||
union {
|
||||
@@ -74,7 +74,7 @@ typedef struct TransitionOverlay {
|
||||
/* 0x04 */ void* vramStart;
|
||||
/* 0x08 */ void* vramEnd;
|
||||
/* 0x0C */ RomFile file;
|
||||
/* 0x14 */ TransitionInit* initInfo;
|
||||
/* 0x14 */ TransitionProfile* profile;
|
||||
/* 0x18 */ size_t size;
|
||||
} TransitionOverlay;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user