mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-14 11:53:44 -04:00
Setup d_a_obj Actors (#2161)
* checkpoint * checkpoint * checkpoint * checkpoint * checkpoint * checkpoint * checkpoint * finish * add class comments * checkpoint * checkpoint * checkpoint * checkpoint * checkpoint * checkpoint * checkpoint * checkpoint * checkpoint * checkpoint * checkpoint * checkpoint * finish * add class comments * rm duplicate comments * fix build
This commit is contained in:
@@ -1,189 +1,11 @@
|
||||
//
|
||||
// Generated By: dol2asm
|
||||
// Translation Unit: d_a_obj_kshutter
|
||||
//
|
||||
/**
|
||||
* @file d_a_obj_kshutter.cpp
|
||||
*
|
||||
*/
|
||||
|
||||
#include "rel/d/a/obj/d_a_obj_kshutter/d_a_obj_kshutter.h"
|
||||
#include "dol2asm.h"
|
||||
|
||||
//
|
||||
// Types:
|
||||
//
|
||||
|
||||
struct request_of_phase_process_class {};
|
||||
|
||||
struct Vec {};
|
||||
|
||||
struct cXyz {
|
||||
/* 80266B34 */ void operator-(Vec const&) const;
|
||||
/* 80266EF4 */ void normalize();
|
||||
};
|
||||
|
||||
struct mDoMtx_stack_c {
|
||||
/* 8000CD64 */ void transS(cXyz const&);
|
||||
|
||||
static u8 now[48];
|
||||
};
|
||||
|
||||
struct J3DModelData {};
|
||||
|
||||
struct J3DAnmTransform {};
|
||||
|
||||
struct mDoExt_bckAnm {
|
||||
/* 8000D7DC */ void init(J3DAnmTransform*, int, int, f32, s16, s16, bool);
|
||||
/* 8000D9CC */ void entry(J3DModelData*, f32);
|
||||
};
|
||||
|
||||
struct mDoExt_baseAnm {
|
||||
/* 8000D428 */ void play();
|
||||
};
|
||||
|
||||
struct fopAc_ac_c {};
|
||||
|
||||
struct daObjKshtr_c {
|
||||
/* 80C47AB8 */ void initBaseMtx();
|
||||
/* 80C47B2C */ void setBaseMtx();
|
||||
/* 80C47C14 */ void Create();
|
||||
/* 80C47E54 */ void offDzb();
|
||||
/* 80C47EA8 */ void CreateHeap();
|
||||
/* 80C48050 */ void initKey();
|
||||
/* 80C48148 */ void phase_0();
|
||||
/* 80C4827C */ void phase_1();
|
||||
/* 80C48320 */ s32 phase_2();
|
||||
/* 80C48328 */ void create1st();
|
||||
/* 80C483CC */ void event_proc_call();
|
||||
/* 80C48470 */ void event_proc_call2();
|
||||
/* 80C4852C */ void Execute(f32 (**)[3][4]);
|
||||
/* 80C48590 */ void checkArea();
|
||||
/* 80C48708 */ void checkOpen();
|
||||
/* 80C48798 */ void getDemoAction();
|
||||
/* 80C487E0 */ void demoProc2();
|
||||
/* 80C489E0 */ void adjustmentProc();
|
||||
/* 80C48AC8 */ void keyUnlockInit();
|
||||
/* 80C48B84 */ void keyUnlock();
|
||||
/* 80C48BD8 */ void openInit();
|
||||
/* 80C48D0C */ void openProc();
|
||||
/* 80C48D80 */ void openProc_type1();
|
||||
/* 80C48F94 */ void openProc_type2();
|
||||
/* 80C490F8 */ void openProc_typeL3Boss();
|
||||
/* 80C49158 */ void demoProc();
|
||||
/* 80C4925C */ void demoJail1();
|
||||
/* 80C494A8 */ void demoJail2();
|
||||
/* 80C495A4 */ void demoJail11();
|
||||
/* 80C496C8 */ bool demoJail21();
|
||||
/* 80C496D0 */ void anmInit();
|
||||
/* 80C497A0 */ void actionWaitEvent();
|
||||
/* 80C49880 */ void actionEvent();
|
||||
/* 80C49914 */ void actionDead();
|
||||
/* 80C49918 */ void actionWaitEvent2();
|
||||
/* 80C499CC */ void actionOpen();
|
||||
/* 80C49A08 */ void actionEvent2();
|
||||
/* 80C49A70 */ void actionDead2();
|
||||
/* 80C49A74 */ void Draw();
|
||||
/* 80C49B4C */ void Delete();
|
||||
};
|
||||
|
||||
struct dVibration_c {
|
||||
/* 8006FA24 */ void StartShock(int, int, cXyz);
|
||||
};
|
||||
|
||||
struct dSv_memBit_c {
|
||||
/* 80034934 */ void isDungeonItem(int) const;
|
||||
};
|
||||
|
||||
struct dSv_info_c {
|
||||
/* 80035200 */ void onSwitch(int, int);
|
||||
/* 80035360 */ void isSwitch(int, int) const;
|
||||
};
|
||||
|
||||
struct dKy_tevstr_c {};
|
||||
|
||||
struct dScnKy_env_light_c {
|
||||
/* 801A37C4 */ void settingTevStruct(int, cXyz*, dKy_tevstr_c*);
|
||||
/* 801A4DA0 */ void setLightTevColorType_MAJI(J3DModelData*, dKy_tevstr_c*);
|
||||
};
|
||||
|
||||
struct dRes_info_c {};
|
||||
|
||||
struct dRes_control_c {
|
||||
/* 8003C37C */ void getRes(char const*, char const*, dRes_info_c*, int);
|
||||
/* 8003C2EC */ void getRes(char const*, s32, dRes_info_c*, int);
|
||||
};
|
||||
|
||||
struct dPa_levelEcallBack {};
|
||||
|
||||
struct csXyz {};
|
||||
|
||||
struct _GXColor {};
|
||||
|
||||
struct dPa_control_c {
|
||||
/* 8004CA90 */ void set(u8, u16, cXyz const*, dKy_tevstr_c const*, csXyz const*, cXyz const*,
|
||||
u8, dPa_levelEcallBack*, s8, _GXColor const*, _GXColor const*,
|
||||
cXyz const*, f32);
|
||||
};
|
||||
|
||||
struct dEvt_control_c {
|
||||
/* 80042468 */ void reset();
|
||||
};
|
||||
|
||||
struct dEvent_manager_c {
|
||||
/* 80047758 */ void getEventIdx(fopAc_ac_c*, char const*, u8);
|
||||
/* 80047698 */ void getEventIdx(fopAc_ac_c*, u8);
|
||||
/* 80047A78 */ void endCheck(s16);
|
||||
/* 80047B1C */ void getMyStaffId(char const*, fopAc_ac_c*, int);
|
||||
/* 80047D4C */ void getIsAddvance(int);
|
||||
/* 80047E10 */ void getMyActIdx(int, char const* const*, int, int, int);
|
||||
/* 800480EC */ void getMySubstanceP(int, char const*, int);
|
||||
/* 8004817C */ void cutEnd(int);
|
||||
};
|
||||
|
||||
struct dBgW_Base {};
|
||||
|
||||
struct dBgW {};
|
||||
|
||||
struct cBgS_PolyInfo {};
|
||||
|
||||
struct dBgS_MoveBgActor {
|
||||
/* 80078624 */ dBgS_MoveBgActor();
|
||||
/* 800786B0 */ bool IsDelete();
|
||||
/* 800786B8 */ bool ToFore();
|
||||
/* 800786C0 */ bool ToBack();
|
||||
/* 800787BC */ void MoveBGCreate(char const*, int,
|
||||
void (*)(dBgW*, void*, cBgS_PolyInfo const&, bool, cXyz*,
|
||||
csXyz*, csXyz*),
|
||||
u32, f32 (*)[3][4]);
|
||||
/* 800788DC */ void MoveBGDelete();
|
||||
/* 80078950 */ void MoveBGExecute();
|
||||
};
|
||||
|
||||
struct cBgW_BgId {
|
||||
/* 802681D4 */ void ChkUsed() const;
|
||||
};
|
||||
|
||||
struct cBgS {
|
||||
/* 80074250 */ void Release(dBgW_Base*);
|
||||
};
|
||||
|
||||
struct JAISoundID {};
|
||||
|
||||
struct Z2SeMgr {
|
||||
/* 802AB984 */ void seStart(JAISoundID, Vec const*, u32, s8, f32, f32, f32, f32, u8);
|
||||
};
|
||||
|
||||
struct Z2AudioMgr {
|
||||
static u8 mAudioMgrPtr[4 + 4 /* padding */];
|
||||
};
|
||||
|
||||
struct JMath {
|
||||
static u8 sincosTable_[65536];
|
||||
};
|
||||
|
||||
struct J3DModel {};
|
||||
|
||||
struct J3DFrameCtrl {
|
||||
/* 803283FC */ void init(s16);
|
||||
/* 80C48008 */ ~J3DFrameCtrl();
|
||||
};
|
||||
|
||||
//
|
||||
// Forward References:
|
||||
@@ -293,9 +115,6 @@ extern "C" void seStart__7Z2SeMgrF10JAISoundIDPC3VecUlScffffUc();
|
||||
extern "C" void* __nw__FUl();
|
||||
extern "C" void __dl__FPv();
|
||||
extern "C" void init__12J3DFrameCtrlFs();
|
||||
extern "C" void PSMTXCopy();
|
||||
extern "C" void PSMTXTrans();
|
||||
extern "C" void PSVECSquareMag();
|
||||
extern "C" void __ptmf_scall();
|
||||
extern "C" void _savegpr_25();
|
||||
extern "C" void _savegpr_27();
|
||||
@@ -305,14 +124,9 @@ extern "C" void _restgpr_25();
|
||||
extern "C" void _restgpr_27();
|
||||
extern "C" void _restgpr_28();
|
||||
extern "C" void _restgpr_29();
|
||||
extern "C" void abs();
|
||||
extern "C" extern void* g_fopAc_Method[8];
|
||||
extern "C" extern void* g_fpcLf_Method[5 + 1 /* padding */];
|
||||
extern "C" u8 now__14mDoMtx_stack_c[48];
|
||||
extern "C" extern u8 g_dComIfG_gameInfo[122384];
|
||||
extern "C" extern u8 g_env_light[4880];
|
||||
extern "C" extern u8 g_meter2_info[248];
|
||||
extern "C" extern u8 j3dSys[284];
|
||||
extern "C" u8 sincosTable___5JMath[65536];
|
||||
extern "C" u8 mAudioMgrPtr__10Z2AudioMgr[4 + 4 /* padding */];
|
||||
extern "C" extern u8 struct_80C4A0E8[4];
|
||||
@@ -726,25 +540,30 @@ SECTION_DATA static u8 l_demoProc2[24] = {
|
||||
#pragma pop
|
||||
|
||||
/* 80C4A060-80C4A080 -00001 0020+00 1/0 0/0 0/0 .data daObjKshtr_METHODS */
|
||||
SECTION_DATA static void* daObjKshtr_METHODS[8] = {
|
||||
(void*)daObjKshtr_create1st__FP12daObjKshtr_c,
|
||||
(void*)daObjKshtr_MoveBGDelete__FP12daObjKshtr_c,
|
||||
(void*)daObjKshtr_MoveBGExecute__FP12daObjKshtr_c,
|
||||
(void*)NULL,
|
||||
(void*)daObjKshtr_MoveBGDraw__FP12daObjKshtr_c,
|
||||
(void*)NULL,
|
||||
(void*)NULL,
|
||||
(void*)NULL,
|
||||
static actor_method_class daObjKshtr_METHODS = {
|
||||
(process_method_func)daObjKshtr_create1st__FP12daObjKshtr_c,
|
||||
(process_method_func)daObjKshtr_MoveBGDelete__FP12daObjKshtr_c,
|
||||
(process_method_func)daObjKshtr_MoveBGExecute__FP12daObjKshtr_c,
|
||||
0,
|
||||
(process_method_func)daObjKshtr_MoveBGDraw__FP12daObjKshtr_c,
|
||||
};
|
||||
|
||||
/* 80C4A080-80C4A0B0 -00001 0030+00 0/0 0/0 1/0 .data g_profile_Obj_Kshutter */
|
||||
SECTION_DATA extern void* g_profile_Obj_Kshutter[12] = {
|
||||
(void*)0xFFFFFFFD, (void*)0x0003FFFD,
|
||||
(void*)0x00550000, (void*)&g_fpcLf_Method,
|
||||
(void*)0x00000620, (void*)NULL,
|
||||
(void*)NULL, (void*)&g_fopAc_Method,
|
||||
(void*)0x01BB0000, (void*)&daObjKshtr_METHODS,
|
||||
(void*)0x00040100, (void*)0x000E0000,
|
||||
extern actor_process_profile_definition g_profile_Obj_Kshutter = {
|
||||
fpcLy_CURRENT_e, // mLayerID
|
||||
3, // mListID
|
||||
fpcPi_CURRENT_e, // mListPrio
|
||||
PROC_Obj_Kshutter, // mProcName
|
||||
&g_fpcLf_Method.mBase, // sub_method
|
||||
sizeof(daObjKshtr_c), // mSize
|
||||
0, // mSizeOther
|
||||
0, // mParameters
|
||||
&g_fopAc_Method.base, // sub_method
|
||||
443, // mPriority
|
||||
&daObjKshtr_METHODS, // sub_method
|
||||
0x00040100, // mStatus
|
||||
fopAc_ACTOR_e, // mActorType
|
||||
fopAc_CULLBOX_CUSTOM_e, // cullType
|
||||
};
|
||||
|
||||
/* 80C4A0B0-80C4A0BC 000250 000C+00 2/2 0/0 0/0 .data __vt__12J3DFrameCtrl */
|
||||
@@ -768,7 +587,8 @@ asm void daObjKshtr_c::CreateHeap() {
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm J3DFrameCtrl::~J3DFrameCtrl() {
|
||||
// asm J3DFrameCtrl::~J3DFrameCtrl() {
|
||||
extern "C" asm void __dt__12J3DFrameCtrlFv() {
|
||||
nofralloc
|
||||
#include "asm/rel/d/a/obj/d_a_obj_kshutter/d_a_obj_kshutter/__dt__12J3DFrameCtrlFv.s"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user