mirror of
https://github.com/zeldaret/mm.git
synced 2026-07-11 14:18:39 -04:00
z_eff_footmark cleanup (#1180)
* z64eff_footmark.h * arraycount and other clenaups * flag * extract data * gEffFootprints * singular * minor cleanup * review * pos * mf * format
This commit is contained in:
@@ -1256,10 +1256,6 @@ u8 Cutscene_IsPlaying(PlayState* play);
|
||||
|
||||
void GetItem_Draw(PlayState* play, s16 drawId);
|
||||
|
||||
void EffFootmark_Init(PlayState* play);
|
||||
void EffFootmark_Add(PlayState* play, MtxF* displayMatrix, Actor* actor, u8 id, Vec3f* location, u16 size, u8 red, u8 green, u8 blue, u16 alpha, u16 alphaChange, u16 fadeoutDelay);
|
||||
void EffFootmark_Update(PlayState* play);
|
||||
void EffFootmark_Draw(PlayState* play);
|
||||
void SoundSource_InitAll(PlayState* play);
|
||||
void SoundSource_UpdateAll(PlayState* play);
|
||||
void SoundSource_PlaySfxAtFixedWorldPos(PlayState* play, Vec3f* worldPos, u32 duration, u16 sfxId);
|
||||
|
||||
@@ -479,9 +479,6 @@ extern EffectShieldParticleInit shieldParticleInitWood;
|
||||
|
||||
extern u8 D_801BB12C;
|
||||
|
||||
// extern UNK_TYPE1 D_801BC210;
|
||||
extern Gfx D_801BC240[9];
|
||||
extern Gfx D_801BC288[3];
|
||||
// extern UNK_TYPE1 D_801BC41E;
|
||||
extern ActorCutscene actorCutscenesGlobalCutscenes[8];
|
||||
extern s16 actorCutsceneCurrent;
|
||||
|
||||
+1
-17
@@ -34,6 +34,7 @@
|
||||
#include "z64curve.h"
|
||||
#include "z64cutscene.h"
|
||||
#include "z64dma.h"
|
||||
#include "z64eff_footmark.h"
|
||||
#include "z64effect.h"
|
||||
#include "z64interface.h"
|
||||
#include "z64item.h"
|
||||
@@ -712,23 +713,6 @@ typedef struct {
|
||||
/* 0x130 */ OSThread thread;
|
||||
} AudioMgr; // size = 0x2E0
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ MtxF displayMatrix;
|
||||
/* 0x40 */ Actor* actor;
|
||||
/* 0x44 */ Vec3f location;
|
||||
/* 0x50 */ u8 flags; // bit 0 - footmark fades out
|
||||
/* 0x51 */ u8 id;
|
||||
/* 0x52 */ u8 red;
|
||||
/* 0x53 */ u8 blue;
|
||||
/* 0x54 */ u8 green;
|
||||
/* 0x55 */ UNK_TYPE1 pad55[0x1];
|
||||
/* 0x56 */ u16 alpha;
|
||||
/* 0x58 */ u16 alphaChange;
|
||||
/* 0x5A */ u16 size;
|
||||
/* 0x5C */ u16 fadeoutDelay;
|
||||
/* 0x5E */ u16 age;
|
||||
} EffFootmark; // size = 0x60
|
||||
|
||||
typedef struct FireObj {
|
||||
/* 0x00 */ Vec3f position;
|
||||
/* 0x0C */ f32 size;
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
#ifndef Z64EFF_FOOTMARK_H
|
||||
#define Z64EFF_FOOTMARK_H
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "z64math.h"
|
||||
|
||||
struct PlayState;
|
||||
struct Actor;
|
||||
|
||||
typedef struct EffFootmark {
|
||||
/* 0x00 */ MtxF mf;
|
||||
/* 0x40 */ struct Actor* actor;
|
||||
/* 0x44 */ Vec3f pos;
|
||||
/* 0x50 */ u8 flags; // bit 0 - footmark fades out
|
||||
/* 0x51 */ u8 id;
|
||||
/* 0x52 */ u8 red;
|
||||
/* 0x53 */ u8 blue;
|
||||
/* 0x54 */ u8 green;
|
||||
/* 0x56 */ u16 alpha;
|
||||
/* 0x58 */ u16 alphaChange;
|
||||
/* 0x5A */ u16 size;
|
||||
/* 0x5C */ u16 fadeOutDelay;
|
||||
/* 0x5E */ u16 age;
|
||||
} EffFootmark; // size = 0x60
|
||||
|
||||
#define FOOTMARK_FLAG_1 (1 << 0)
|
||||
|
||||
void EffFootmark_Init(struct PlayState* play);
|
||||
void EffFootmark_Add(struct PlayState* play, MtxF* mf, struct Actor* actor, u8 id, Vec3f* pos, u16 size, u8 red, u8 green, u8 blue, u16 alpha, u16 alphaChange, u16 fadeOutDelay);
|
||||
void EffFootmark_Update(struct PlayState* play);
|
||||
void EffFootmark_Draw(struct PlayState* play);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user