1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
//
// Generated by dtk
// Translation Unit: d_a_komore.cpp
//
#include "d/dolzel_rel.h" // IWYU pragma: keep
#include "d/actor/d_a_komore.h"
#include "d/d_com_inf_game.h"
#include "res/Object/frLt.h"
const char daKomore::Act_c::M_arcname[] = "frLt";
/* 00000078-0000009C .text solidHeapCB__Q28daKomore5Act_cFP10fopAc_ac_c */
BOOL daKomore::Act_c::solidHeapCB(fopAc_ac_c* i_this) {
return ((Act_c*)i_this)->create_heap();
}
/* 0000009C-000001F8 .text create_heap__Q28daKomore5Act_cFv */
bool daKomore::Act_c::create_heap() {
J3DModelData* mdl_data;
J3DAnmTextureSRTKey* btk_data;
mdl_data = (J3DModelData*)(dComIfG_getObjectRes(M_arcname, dRes_INDEX_FRLT_BDL_YFRLT00_e));
JUT_ASSERT(0x66, mdl_data != NULL);
if (mdl_data != NULL) {
mpModel = mDoExt_J3DModel__create(mdl_data, 0, 0x11020203);
}
btk_data = (J3DAnmTextureSRTKey*)(dComIfG_getObjectRes(M_arcname, dRes_INDEX_FRLT_BTK_YFRLT00_e));
JUT_ASSERT(0x6d, btk_data != NULL);
s32 btkRet =
mBtkAnm.init(mdl_data, btk_data, 1, J3DFrameCtrl::EMode_LOOP);
bool ret = FALSE;
if (mdl_data != NULL && this->mpModel != NULL && btkRet != NULL) {
ret = TRUE;
}
return ret;
}
/* 000001F8-000002F8 .text _create__Q28daKomore5Act_cFv */
cPhs_State daKomore::Act_c::_create() {
fopAcM_ct(this, Act_c);
cPhs_State phase_state = dComIfG_resLoad(&mPhs, M_arcname);
if (phase_state == cPhs_COMPLEATE_e) {
if (fopAcM_entrySolidHeap(this, solidHeapCB, 0x0)) {
set_mtx();
fopAcM_SetMtx(this, mpModel->getBaseTRMtx());
fopAcM_setCullSizeBox(this, -100.f, -1000.f, -100.f, 100.0f, 100.0f, 100.0f);
} else {
phase_state = cPhs_ERROR_e;
}
}
return phase_state;
}
/* 0000039C-000003CC .text _delete__Q28daKomore5Act_cFv */
bool daKomore::Act_c::_delete() {
dComIfG_resDelete(&mPhs, M_arcname);
return true;
}
/* 000003CC-00000478 .text set_mtx__Q28daKomore5Act_cFv */
void daKomore::Act_c::set_mtx() {
mpModel->setBaseScale(scale);
mDoMtx_stack_c::transS(current.pos);
mDoMtx_stack_c::ZXYrotM(shape_angle);
mpModel->setBaseTRMtx(mDoMtx_stack_c::get());
MTXCopy(mDoMtx_stack_c::get(), mMtx);
mpModel->calc();
}
/* 00000478-000004A0 .text _execute__Q28daKomore5Act_cFv */
bool daKomore::Act_c::_execute() {
mBtkAnm.play();
return true;
}
/* 000004A0-00000518 .text _draw__Q28daKomore5Act_cFv */
bool daKomore::Act_c::_draw() {
g_env_light.settingTevStruct(TEV_TYPE_BG2, ¤t.pos, &tevStr);
g_env_light.setLightTevColorType(mpModel, &tevStr);
mBtkAnm.entry(mpModel->getModelData());
mDoExt_modelUpdateDL(mpModel);
return true;
}
namespace daKomore {
namespace {
/* 00000518-00000538 .text Mthd_Create__Q28daKomore24@unnamed@d_a_komore_cpp@FPv */
cPhs_State Mthd_Create(void* i_this) {
return static_cast<Act_c*>(i_this)->_create();
}
/* 00000538-0000055C .text Mthd_Delete__Q28daKomore24@unnamed@d_a_komore_cpp@FPv */
BOOL Mthd_Delete(void* i_this) {
return static_cast<Act_c*>(i_this)->_delete();
}
/* 0000055C-00000580 .text Mthd_Execute__Q28daKomore24@unnamed@d_a_komore_cpp@FPv */
BOOL Mthd_Execute(void* i_this) {
return static_cast<Act_c*>(i_this)->_execute();
}
/* 00000580-000005A4 .text Mthd_Draw__Q28daKomore24@unnamed@d_a_komore_cpp@FPv */
BOOL Mthd_Draw(void* i_this) {
return static_cast<Act_c*>(i_this)->_draw();
}
/* 000005A4-000005AC .text Mthd_IsDelete__Q28daKomore24@unnamed@d_a_komore_cpp@FPv */
BOOL Mthd_IsDelete(void* i_this) {
return TRUE;
}
static actor_method_class Mthd_Table = {
(process_method_func)Mthd_Create, (process_method_func)Mthd_Delete,
(process_method_func)Mthd_Execute, (process_method_func)Mthd_IsDelete,
(process_method_func)Mthd_Draw,
};
}; // namespace
}; // namespace daKomore
actor_process_profile_definition g_profile_Komore = {
/* Layer ID */ fpcLy_CURRENT_e,
/* List ID */ 0x0007,
/* List Prio */ fpcPi_CURRENT_e,
/* Proc Name */ fpcNm_Komore_e,
/* Proc SubMtd */ &g_fpcLf_Method.base,
/* Size */ sizeof(daKomore::Act_c),
/* Size Other */ 0,
/* Parameters */ 0,
/* Leaf SubMtd */ &g_fopAc_Method.base,
/* Draw Prio */ fpcDwPi_Komore_e,
/* Actor SubMtd */ &daKomore::Mthd_Table,
/* Status */ fopAcStts_UNK40000_e,
/* Group */ fopAc_ACTOR_e,
/* Cull Type */ fopAc_CULLBOX_CUSTOM_e,
};
|