mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-24 15:00:55 -04:00
0ff06d2974
* Fix missing arg to JUT_ASSERT * Fix some MWCC version diff errors * Compile m_Do_ext, d_demo, actor_mng * Add VSCode task to quickly switch between versions * Unlink magLift for debug * Update the hash of the debug dol The old cbea5fa... hash here was for the dol generated by the alf2dol.py script, which produces incorrect alignment. The dol with the new hash can be obtained by using `dtk elf2dol` to convert the debug .alf file to a dol. The DOL now builds OK. * Fix all debug REL dtor splits All RELs now also build OK, meaning `ninja build/ShieldD/ok` now succeeds. * Add genMessage declarations to all HIO subclasses * Fixing more compilation errors * m_Do_mtx 100% on debug Cannot be linked due to weak function name mangling? * Improve various matches * Fix all remaining compilation errors * Fix new compilation errors from main * Fix retail regression * Link f_pc_profile_lst
92 lines
2.5 KiB
C++
92 lines
2.5 KiB
C++
#ifndef D_A_OBJ_SWALLSHUTTER_H
|
|
#define D_A_OBJ_SWALLSHUTTER_H
|
|
|
|
#include "f_op/f_op_actor_mng.h"
|
|
#include "d/d_bg_s_movebg_actor.h"
|
|
#include "m_Do/m_Do_hostIO.h"
|
|
|
|
/**
|
|
* @ingroup actors-objects
|
|
* @class daSwShutter_c
|
|
* @brief Shutter Wall (Switch)
|
|
*
|
|
* @details
|
|
*
|
|
*/
|
|
class daSwShutter_c : public dBgS_MoveBgActor {
|
|
public:
|
|
enum TYPE_e {
|
|
TYPE_ROCKWALL_e, // Goron Mines Shutter Wall
|
|
TYPE_SUBDAN_e, // Cave of Ordeals Shutter Wall
|
|
};
|
|
|
|
enum MODE_e {
|
|
MODE_WAIT,
|
|
MODE_MOVE_DOWN_INIT,
|
|
MODE_MOVE_DOWN,
|
|
MODE_MOVE_DOWN_END,
|
|
};
|
|
|
|
/* 805982A4 */ void setBaseMtx();
|
|
/* 805983C4 */ int create();
|
|
/* 805985B4 */ void moveMain();
|
|
/* 8059873C */ void init_modeWait();
|
|
/* 80598748 */ void modeWait();
|
|
/* 8059879C */ void init_modeMoveDownInit();
|
|
/* 805989D0 */ void modeMoveDownInit();
|
|
/* 80598A04 */ void init_modeMoveDown();
|
|
/* 80598AFC */ void modeMoveDown();
|
|
/* 80598D4C */ void init_modeMoveDownEnd();
|
|
/* 80598D58 */ void modeMoveDownEnd();
|
|
|
|
/* 80598344 */ virtual int CreateHeap();
|
|
/* 80598564 */ virtual int Execute(Mtx**);
|
|
/* 80598D5C */ virtual int Draw();
|
|
/* 80598E00 */ virtual int Delete();
|
|
|
|
int getSwBit() { return fopAcM_GetParamBit(this, 0, 8); }
|
|
int getModelType() { return fopAcM_GetParamBit(this, 8, 4); }
|
|
|
|
/* 0x5A0 */ request_of_phase_process_class mPhase;
|
|
/* 0x5A8 */ J3DModel* mpModel;
|
|
/* 0x5AC */ u8 mModelType;
|
|
/* 0x5AD */ u8 mMode;
|
|
/* 0x5B0 */ f32 field_0x5b0;
|
|
/* 0x5B4 */ u8 field_0x5B4[0x5B8 - 0x5B4];
|
|
/* 0x5B8 */ csXyz mShakeRot;
|
|
/* 0x5C0 */ f32 mShakeStrength;
|
|
/* 0x5C4 */ f32 mShakeAmpZ;
|
|
/* 0x5C8 */ f32 mShakeAmpY;
|
|
/* 0x5CC */ f32 mShakeAtten;
|
|
/* 0x5D0 */ f32 mMaxAtten;
|
|
/* 0x5D4 */ f32 mMinAtten;
|
|
/* 0x5D8 */ int mCounter;
|
|
/* 0x5DC */ u32 mEmitterID0;
|
|
/* 0x5E0 */ u32 mEmitterID1;
|
|
/* 0x5E4 */ u8 field_0x5e4[0x5e8 - 0x5e4];
|
|
};
|
|
|
|
STATIC_ASSERT(sizeof(daSwShutter_c) == 0x5e8);
|
|
|
|
class daSwShutter_HIO_c : public mDoHIO_entry_c {
|
|
public:
|
|
/* 805981EC */ daSwShutter_HIO_c();
|
|
/* 80598ECC */ virtual ~daSwShutter_HIO_c() {}
|
|
|
|
void genMessage(JORMContext*);
|
|
|
|
/* 0x04 */ f32 mInitSpeed;
|
|
/* 0x08 */ f32 mMaxSpeed;
|
|
/* 0x0C */ f32 mAcceleration;
|
|
/* 0x10 */ u8 mVibrationStrength;
|
|
/* 0x14 */ f32 mShakeStrength;
|
|
/* 0x18 */ f32 mShakeAmpZ;
|
|
/* 0x1C */ f32 mShakeAmpY;
|
|
/* 0x20 */ f32 mShakeAtten;
|
|
/* 0x24 */ f32 mMaxAtten;
|
|
/* 0x28 */ f32 mMinAtten;
|
|
};
|
|
|
|
|
|
#endif /* D_A_OBJ_SWALLSHUTTER_H */
|