Files
dusklight/src/d/actor/d_a_set_bgobj.cpp
T
kipcode66 ea53712c30 Add guards around std library headers (#3013)
* Last fix for standard compiler error

* adding define guards around headers

* rename cmath.h and climits.h to cmath and climits respectively

* renaming cstdarg.h to cstdarg

* renaming cstdlib.h to cstdlib

* renaming cstring.h to cstring

* renaming cstdio.h to cstdio

* renaming cmath locale ctype

* renaming stdarg string and va_list

* renaming cstddef

* renaming stdio stddef stdlib

* renaming algorithm, functional, iterator, memory, and utility

* renaming bitset, cstdint, limits, and stdint

* renaming new and type_traits

* update quote includes for standard library headers to angle bracket includes
2026-01-05 03:50:45 -08:00

74 lines
1.6 KiB
C++

/**
* d_a_set_bgobj.cpp
*
*/
#include "d/dolzel_rel.h" // IWYU pragma: keep
#include "d/actor/d_a_set_bgobj.h"
#include <stdio>
#include "f_op/f_op_actor_mng.h"
static const char l_specName[] = "spec.dat";
int daSetBgObj_c::CreateInit() {
static s16 l_bg_profName[5] = {
PROC_BG_OBJ, PROC_BG_OBJ, PROC_BG_OBJ, PROC_Obj_Flag2, PROC_Obj_Flag3,
};
u16* spec_data_p = (u16*)dComIfG_getObjectRes(mArcName, l_specName);
fopAcM_create(l_bg_profName[*spec_data_p], fopAcM_GetParam(this), &current.pos,
fopAcM_GetRoomNo(this), &current.angle, &scale, -1);
return 1;
}
int daSetBgObj_c::create() {
fopAcM_ct(this, daSetBgObj_c);
sprintf(mArcName, "%s", getArcName(this));
int phase = dComIfG_resLoad(&mPhase, mArcName);
if (phase == cPhs_COMPLEATE_e) {
CreateInit();
phase = cPhs_ERROR_e;
}
return phase;
}
int daSetBgObj_c::Delete() {
dComIfG_resDelete(&mPhase, mArcName);
return 1;
}
static int daSetBgObj_Delete(daSetBgObj_c* i_this) {
return i_this->Delete();
}
static int daSetBgObj_Create(fopAc_ac_c* i_this) {
return static_cast<daSetBgObj_c*>(i_this)->create();
}
static actor_method_class l_daSetBgObj_Method = {
(process_method_func)daSetBgObj_Create,
(process_method_func)daSetBgObj_Delete,
};
actor_process_profile_definition g_profile_SET_BG_OBJ = {
fpcLy_CURRENT_e,
7,
fpcPi_CURRENT_e,
PROC_SET_BG_OBJ,
&g_fpcLf_Method.base,
sizeof(daSetBgObj_c),
0,
0,
&g_fopAc_Method.base,
754,
&l_daSetBgObj_Method,
0x40100,
fopAc_ACTOR_e,
fopAc_CULLBOX_CUSTOM_e,
};