tp/rel/d/a/d_a_tboxSw/d_a_tboxSw.cpp

102 lines
2.8 KiB
C++

//
// Generated By: dol2asm
// Translation Unit: d_a_tboxSw
//
#include "rel/d/a/d_a_tboxSw/d_a_tboxSw.h"
#include "dol2asm.h"
#include "dolphin/types.h"
#include "d/com/d_com_inf_game.h"
//
// External References:
//
extern "C" extern void* g_fopAc_Method[8];
//
// Declarations:
//
/* 80D66858-80D66860 000078 0008+00 1/1 0/0 0/0 .text Create__10daTboxSw_cFv */
int daTboxSw_c::Create() {
return 1;
}
/* 80D66860-80D668C8 000080 0068+00 1/1 0/0 0/0 .text create__10daTboxSw_cFv */
int daTboxSw_c::create() {
if (!fopAcM_CheckCondition(this, 8)) {
new (this) daTboxSw_c();
fopAcM_OnCondition(this, 8);
}
if (!Create()) {
return cPhs_ERROR_e;
}
return cPhs_COMPLEATE_e;
}
/* 80D668C8-80D66938 0000E8 0070+00 1/1 0/0 0/0 .text execute__10daTboxSw_cFv */
int daTboxSw_c::execute() {
if (dComIfGs_isTbox(daTboxSw_prm::getTboxNo(this))) {
dComIfGs_onSwitch(daTboxSw_prm::getSwNo(this), fopAcM_GetHomeRoomNo(this));
fopAcM_delete(this);
}
return 1;
}
/* 80D66938-80D66940 000158 0008+00 1/1 0/0 0/0 .text draw__10daTboxSw_cFv */
int daTboxSw_c::draw() {
return 1;
}
/* 80D66940-80D66948 000160 0008+00 1/1 0/0 0/0 .text _delete__10daTboxSw_cFv */
int daTboxSw_c::_delete() {
return 1;
}
/* 80D66948-80D66968 000168 0020+00 1/0 0/0 0/0 .text daTboxSw_Draw__FP10daTboxSw_c */
static int daTboxSw_Draw(daTboxSw_c* i_this) {
return i_this->draw();
}
/* 80D66968-80D66988 000188 0020+00 1/0 0/0 0/0 .text daTboxSw_Execute__FP10daTboxSw_c */
static int daTboxSw_Execute(daTboxSw_c* i_this) {
return i_this->execute();
}
/* 80D66988-80D669A8 0001A8 0020+00 1/0 0/0 0/0 .text daTboxSw_Delete__FP10daTboxSw_c */
static int daTboxSw_Delete(daTboxSw_c* i_this) {
return i_this->_delete();
}
/* 80D669A8-80D669C8 0001C8 0020+00 1/0 0/0 0/0 .text daTboxSw_Create__FP10fopAc_ac_c */
static int daTboxSw_Create(fopAc_ac_c* i_this) {
return static_cast<daTboxSw_c*>(i_this)->create();
}
/* ############################################################################################## */
/* 80D669D0-80D669F0 -00001 0020+00 1/0 0/0 0/0 .data l_daTboxSw_Method */
SECTION_DATA static void* l_daTboxSw_Method[8] = {
(void*)daTboxSw_Create,
(void*)daTboxSw_Delete,
(void*)daTboxSw_Execute,
(void*)NULL,
(void*)daTboxSw_Draw,
(void*)NULL,
(void*)NULL,
(void*)NULL,
};
/* 80D669F0-80D66A20 -00001 0030+00 0/0 0/0 1/0 .data g_profile_TBOX_SW */
SECTION_DATA extern void* g_profile_TBOX_SW[12] = {
(void*)0xFFFFFFFD, (void*)0x0007FFFD,
(void*)0x016E0000, (void*)&g_fpcLf_Method,
(void*)0x00000568, (void*)NULL,
(void*)NULL, (void*)&g_fopAc_Method,
(void*)0x020E0000, (void*)&l_daTboxSw_Method,
(void*)0x00040100, (void*)0x000E0000,
};