diff options
| author | Huitzi <73550465+marwernerh@users.noreply.github.com> | 2026-03-09 21:33:31 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-09 18:33:31 -0700 |
| commit | 0b0fdd1f60193d1e3e610326cc2cf2a7b558d366 (patch) | |
| tree | a39b648ba460b5f80dad748690fa43f6f780e5a6 /src/d/d_event_manager.cpp | |
| parent | 30e839c28be83fb07bfbe008d3eb9eb9127e3801 (diff) | |
Actor status consolidation & process profile definition editing (#3117)
* Consolidate fopAcM_STATUS into fopAc_Status_e
* Add _e suffix to fopAcStts enums
* Prepare for profile enumeration
* Correct typo in scene_process_profile_definition
* Manually handle g_profile_Obj_DamCps (inline preprocessing)
* Correct g_profile_TAG_LV5SOUP procname to enum
* Create d_priority.h
* Update process profile definitions
* Moved inline comments to the left
* Add missing fopAcStts enums
* Add d_priority.h include in f_pc_leaf.h
* Manually update d_a_obj_damCps profile
* Replace fopAcStts enums replacing and anticipatory profile size correction
* Changed profile size from literal to sizeof() in anticipation of PR #3116
* Provided putative names to staff-related status enums
* Replaced appropriate literals with fopAcStts enums
* Fix borked merge
* Rename item number enums and move to d_item_data.h
* Rename process profile name & draw priority enums
* Move process profile name & draw priority enums to appropriate files
* Moved fpcNm_ enums from d/d_procname.h to f_pc/f_pc_name.h
* Moved fpcDwPi_ enums from d/d_priority.h to f_pc/f_pc_draw_priority.h
* ACTUALLY (whoops) stage merge
* Correct item mistranslation
Co-authored-by: LagoLunatic <LagoLunatic@users.noreply.github.com>
---------
Co-authored-by: LagoLunatic <LagoLunatic@users.noreply.github.com>
Diffstat (limited to 'src/d/d_event_manager.cpp')
| -rw-r--r-- | src/d/d_event_manager.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/d/d_event_manager.cpp b/src/d/d_event_manager.cpp index 84af0a5d51..1333192a4f 100644 --- a/src/d/d_event_manager.cpp +++ b/src/d/d_event_manager.cpp @@ -298,7 +298,7 @@ int dEvent_manager_c::create() { OS_REPORT("event manager: BASE_KEEPは読み込めなかった\n"); } #endif - + mEventList[BASE_ACTOR].init(); #if DEBUG @@ -495,19 +495,19 @@ void dEvent_manager_c::remove() { } static void* extraOnObjectCallBack(fopAc_ac_c* actor, void* data) { - fopAcM_OnStatus(actor, fopAcM_STATUS_UNK_0x800); + fopAcM_OnStatus(actor, fopAcStts_STAFF_EXTRA_e); return NULL; } static void* extraOffObjectCallBack(fopAc_ac_c* actor, void* data) { - fopAcM_OffStatus(actor, fopAcM_STATUS_UNK_0x800); + fopAcM_OffStatus(actor, fopAcStts_STAFF_EXTRA_e); return NULL; } static void* allOffObjectCallBack(fopAc_ac_c* actor, void* data) { fopAc_ac_c* spC = (fopAc_ac_c*)data; - fopAcM_OffStatus(actor, fopAcM_STATUS_UNK_0x8000 | fopAcM_STATUS_UNK_0x1000); + fopAcM_OffStatus(actor, fopAcStts_STAFF_PRIMARY_e | fopAcStts_STAFF_SHUTTER_e); return NULL; } @@ -542,7 +542,7 @@ void dEvent_manager_c::startProc(dEvDtEvent_c* event) { } if (event_actor_p != NULL) { - fopAcM_OnStatus(event_actor_p, fopAcM_STATUS_UNK_0x8000); + fopAcM_OnStatus(event_actor_p, fopAcStts_STAFF_PRIMARY_e); // "event manager: C:Staff ON %s!!" OS_REPORT("\x1B[34m%06d: event manager: C:スタッフ ON %s!!\n\x1B[m", g_Counter.mCounter0, dStage_getName(fopAcM_GetProfName(event_actor_p), -1)); } else { @@ -1029,7 +1029,7 @@ int dEvent_manager_c::getMyStaffId(const char* staffName, fopAc_ac_c* actor, int dEvDtEvent_c* event = getEventData(mCurrentEvId); if (event != NULL && (event->mEventState == dEvDt_State_START_e || event->mEventState == dEvDt_State_END_e)) { n_staff = event->getNStaff(); - + bool hasDp = false; if (strchr(staffName, ':') != NULL) { hasDp = true; @@ -1300,7 +1300,7 @@ void dEvent_manager_c::issueStaff(const char* staffname) { char nameBuf[32]; strcpy(nameBuf, staffname); fopAc_ac_c* actor = fopAcM_searchFromName4Event(nameBuf, -1); - fopAcM_OnStatus(actor, fopAcM_STATUS_UNK_0x800); + fopAcM_OnStatus(actor, fopAcStts_STAFF_EXTRA_e); } } @@ -1311,7 +1311,7 @@ void dEvent_manager_c::cancelStaff(const char* staffname) { char nameBuf[32]; strcpy(nameBuf, staffname); fopAc_ac_c* actor = fopAcM_searchFromName4Event(nameBuf, -1); - fopAcM_OffStatus(actor, fopAcM_STATUS_UNK_0x800); + fopAcM_OffStatus(actor, fopAcStts_STAFF_EXTRA_e); } } @@ -1402,18 +1402,18 @@ fopAc_ac_c* dEvent_manager_c::specialCast(const char* staffname, BOOL param_1) { } if (strcmp(staffname, "SHUTTER_DOOR") == 0) { - shutterActor = specialCast_Shutter(PROC_KNOB20, param_1); + shutterActor = specialCast_Shutter(fpcNm_KNOB20_e, param_1); if (shutterActor == NULL) { - shutterActor = specialCast_Shutter(PROC_BOSS_DOOR, param_1); + shutterActor = specialCast_Shutter(fpcNm_BOSS_DOOR_e, param_1); } if (shutterActor == NULL) { - shutterActor = specialCast_Shutter(PROC_L1BOSS_DOOR, param_1); + shutterActor = specialCast_Shutter(fpcNm_L1BOSS_DOOR_e, param_1); } if (shutterActor == NULL) { - shutterActor = specialCast_Shutter(PROC_L1MBOSS_DOOR, param_1); + shutterActor = specialCast_Shutter(fpcNm_L1MBOSS_DOOR_e, param_1); } if (shutterActor == NULL) { - shutterActor = specialCast_Shutter(PROC_L5BOSS_DOOR, param_1); + shutterActor = specialCast_Shutter(fpcNm_L5BOSS_DOOR_e, param_1); } if (shutterActor != NULL) { dComIfGp_getEvent()->onEventFlag(0x10); @@ -1422,9 +1422,9 @@ fopAc_ac_c* dEvent_manager_c::specialCast(const char* staffname, BOOL param_1) { if (shutterActor != NULL) { if (param_1) { - fopAcM_OnStatus(shutterActor, 0x1000); + fopAcM_OnStatus(shutterActor, fopAcStts_STAFF_SHUTTER_e); } else { - fopAcM_OffStatus(shutterActor, 0x1000); + fopAcM_OffStatus(shutterActor, fopAcStts_STAFF_SHUTTER_e); } } |
