tp/rel/d/a/d_a_suspend/d_a_suspend.cpp

69 lines
1.7 KiB
C++

//
// Generated By: dol2asm
// Translation Unit: d_a_suspend
//
#include "rel/d/a/d_a_suspend/d_a_suspend.h"
#include "JSystem/JKernel/JKRHeap.h"
#include "d/d_procname.h"
#include "f_op/f_op_actor_mng.h"
/* 804D5118-804D51E0 000078 00C8+00 1/1 0/0 0/0 .text create__7daSus_cFv */
int daSus_c::create() {
s8 roomNo = fopAcM_GetRoomNo(this);
if (roomNo < 0) {
roomNo = getRoom();
}
u8 sw = getSw();
u8 arg0 = getArg0();
u8 arg1 = getArg1();
if (getScale() != 0) {
mScale.x *= 1250.0f;
mScale.y *= 2500.0f;
mScale.z *= 1250.0f;
} else {
mScale.x *= 125.0f;
mScale.y *= 250.0f;
mScale.z *= 125.0f;
}
newData(roomNo, current.pos, mScale, sw, arg0, arg1);
return cPhs_COMPLEATE_e;
}
/* 804D51E0-804D5234 000140 0054+00 1/0 0/0 0/0 .text daSus_create__FP7daSus_c */
static int daSus_create(daSus_c* i_this) {
if (!fopAcM_CheckCondition(i_this, 8)) {
new (i_this) daSus_c();
fopAcM_OnCondition(i_this, 8);
}
return i_this->create();
}
/* ############################################################################################## */
/* 804D524C-804D526C -00001 0020+00 1/0 0/0 0/0 .data daSus_METHODS */
static actor_method_class daSus_METHODS = {
(process_method_func)daSus_create, NULL, NULL, NULL, NULL,
};
/* 804D526C-804D529C -00001 0030+00 0/0 0/0 1/0 .data g_profile_SUSPEND */
extern actor_process_profile_definition g_profile_SUSPEND = {
-3,
11,
-3,
PROC_SUSPEND,
&g_fpcLf_Method.mBase,
sizeof(daSus_c),
0,
0,
&g_fopAc_Method.base,
763,
&daSus_METHODS,
0x00060000,
5,
0,
};