mirror of
https://github.com/zeldaret/tww.git
synced 2026-07-07 21:30:47 -04:00
99 lines
2.7 KiB
C++
99 lines
2.7 KiB
C++
//
|
|
// Generated by dtk
|
|
// Translation Unit: f_op_kankyo.cpp
|
|
//
|
|
|
|
#include "f_op/f_op_kankyo.h"
|
|
#include "f_op/f_op_draw_tag.h"
|
|
#include "f_op/f_op_kankyo_mng.h"
|
|
#include "f_pc/f_pc_manager.h"
|
|
#include "d/d_meter.h"
|
|
#include "d/d_procname.h"
|
|
#include "d/d_s_play.h"
|
|
|
|
/* 8002A454-8002A4A4 .text fopKy_Draw__FPv */
|
|
static BOOL fopKy_Draw(void* i_ky) {
|
|
BOOL ret;
|
|
kankyo_class* i_this = (kankyo_class*)i_ky;
|
|
|
|
if (!dMenu_flag()) {
|
|
ret = fpcLf_DrawMethod((leafdraw_method_class*)i_this->sub_method, i_this);
|
|
}
|
|
|
|
return ret;
|
|
}
|
|
|
|
/* 8002A4A4-8002A514 .text fopKy_Execute__FPv */
|
|
static BOOL fopKy_Execute(void* i_ky) {
|
|
BOOL ret;
|
|
kankyo_class* i_this = (kankyo_class*)i_ky;
|
|
|
|
if (!dScnPly_ply_c::isPause() && (!dMenu_flag() || fpcM_GetName(i_ky) == PROC_ENVSE || fpcM_GetName(i_ky) == PROC_LEVEL_SE)) {
|
|
ret = fpcMtd_Execute((process_method_class*)i_this->sub_method, i_ky);
|
|
}
|
|
|
|
return ret;
|
|
}
|
|
|
|
/* 8002A514-8002A568 .text fopKy_IsDelete__FPv */
|
|
static BOOL fopKy_IsDelete(void* i_ky) {
|
|
BOOL ret;
|
|
kankyo_class* i_this = (kankyo_class*)i_ky;
|
|
|
|
ret = fpcMtd_IsDelete((process_method_class*)i_this->sub_method, i_this);
|
|
if (ret == 1) {
|
|
fopDwTg_DrawQTo(&i_this->draw_tag);
|
|
}
|
|
|
|
return ret;
|
|
}
|
|
|
|
/* 8002A568-8002A5B4 .text fopKy_Delete__FPv */
|
|
static BOOL fopKy_Delete(void* i_ky) {
|
|
kankyo_class* i_this = (kankyo_class*)i_ky;
|
|
|
|
BOOL ret = fpcMtd_Delete((process_method_class*)i_this->sub_method, i_this);
|
|
fopDwTg_DrawQTo(&i_this->draw_tag);
|
|
|
|
return ret;
|
|
}
|
|
|
|
static int fopKy_KANKYO_TYPE;
|
|
|
|
/* 8002A5B4-8002A688 .text fopKy_Create__FPv */
|
|
static cPhs_State fopKy_Create(void* i_ky) {
|
|
kankyo_class* i_this = (kankyo_class*)i_ky;
|
|
|
|
if (fpcM_IsFirstCreating(i_ky)) {
|
|
kankyo_process_profile_definition* profile = (kankyo_process_profile_definition*)fpcM_GetProfile(i_ky);
|
|
|
|
i_this->mBsType = fpcBs_MakeOfType(&fopKy_KANKYO_TYPE);
|
|
i_this->sub_method = profile->sub_method;
|
|
|
|
fopDwTg_Init(&i_this->draw_tag, i_this);
|
|
fopKyM_prm_class* append = fopKyM_GetAppend(i_this);
|
|
|
|
if (append != NULL) {
|
|
i_this->mPos = append->mPos;
|
|
i_this->mScale = append->mScale;
|
|
i_this->mParam = append->mParam;
|
|
}
|
|
}
|
|
|
|
cPhs_State ret = fpcMtd_Create((process_method_class*)i_this->sub_method, i_this);
|
|
if (ret == cPhs_COMPLEATE_e) {
|
|
s32 priority = fpcM_DrawPriority(i_this);
|
|
fopDwTg_ToDrawQ(&i_this->draw_tag, priority);
|
|
}
|
|
|
|
return ret;
|
|
}
|
|
|
|
leafdraw_method_class g_fopKy_Method = {
|
|
(process_method_func)fopKy_Create,
|
|
(process_method_func)fopKy_Delete,
|
|
(process_method_func)fopKy_Execute,
|
|
(process_method_func)fopKy_IsDelete,
|
|
(process_method_func)fopKy_Draw,
|
|
};
|