d_ky_thunder done / d_scope wip / m_Do_graphic wip (#308)

* d_ky_thunder OK + misc build fixes

* d_scope mostly done

* some m_Do_graphic wip

* remove asm
This commit is contained in:
TakaRikka
2023-03-14 15:27:46 -07:00
committed by GitHub
parent 500d079c40
commit a01d65b0b9
45 changed files with 1493 additions and 1995 deletions
+27 -24
View File
@@ -1,38 +1,41 @@
#ifndef D_D_KY_THUNDER_H
#define D_D_KY_THUNDER_H
#include "dolphin/types.h"
#include "JSystem/JKernel/JKRSolidHeap.h"
#include "f_op/f_op_kankyo.h"
#include "m_Do/m_Do_ext.h"
class dThunder_c {
private:
/* 0x00 */ u8 field_0x00[0xf8];
/* 0xF8 */ JKRSolidHeap* mpHeap;
class dThunder_modelInfo_c {
public:
/* 0x00 */ J3DModel* mpModel;
/* 0x04 */ mDoExt_invisibleModel mInvisModel;
/* 0x0C */ mDoExt_brkAnm mBrk;
/* 0x24 */ mDoExt_btpAnm mBtp;
}; // Size: 0x3C
class dThunder_c : public kankyo_class {
public:
/* 801ADF58 */ int createHeap();
/* 801ADFB4 */ void adjustHeap();
/* 801AE458 */ int create();
inline int draw();
inline int execute(dThunder_c* i_thunder);
inline int thunder_delete(dThunder_c* i_thunder);
~dThunder_c() {
mDoExt_destroySolidHeap(mpHeap);
}
~dThunder_c() { mDoExt_destroySolidHeap(mpHeap); }
private:
/* 0x0F8 */ JKRSolidHeap* mpHeap;
/* 0x0FC */ dThunder_modelInfo_c mModelInfo;
/* 0x138 */ cXyz field_0x138;
/* 0x144 */ cXyz mThunderPos;
/* 0x150 */ cXyz field_0x150;
/* 0x15C */ f32 field_0x15c;
/* 0x160 */ u8 unk_0x160[4];
/* 0x164 */ f32 mBrkSpeed;
/* 0x168 */ s16 field_0x168;
/* 0x16A */ s16 field_0x16a;
/* 0x16C */ s16 field_0x16c;
};
inline int draw() {
// finish
};
inline int execute() {
// finish
};
inline int thunder_delete(dThunder_c* i_dthunderP) {
if (i_dthunderP) {
delete i_dthunderP;
}
return 1;
}
#endif /* D_D_KY_THUNDER_H */