Core/Housing: stage 23 route atomic decor storage handlers

This commit is contained in:
Gexo91
2026-09-12 14:38:41 +03:00
parent 9262b50134
commit d9803f062d
@@ -49,6 +49,15 @@ namespace Housing
success = InstallClientHandler(CMSG_HOUSING_DECOR_SET_DYE_SLOTS, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE, success = InstallClientHandler(CMSG_HOUSING_DECOR_SET_DYE_SLOTS, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE,
&CallSessionHandler<WorldPackets::Housing::HousingDecorSetDyeSlots, &Housing::HandleDecorSetDyeSlotsStage22>) && success; &CallSessionHandler<WorldPackets::Housing::HousingDecorSetDyeSlots, &Housing::HandleDecorSetDyeSlotsStage22>) && success;
// Stage 23 takes ownership of account-level storage mutations. These routes
// no longer execute the legacy sequence of independent SQL statements.
success = InstallClientHandler(CMSG_HOUSING_DECOR_DELETE_FROM_STORAGE, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE,
&CallSessionHandler<WorldPackets::Housing::HousingDecorDeleteFromStorage,
&Housing::HandleDecorDeleteFromStorageStage23>) && success;
success = InstallClientHandler(CMSG_HOUSING_DECOR_REDEEM_DEFERRED_DECOR, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE,
&CallSessionHandler<WorldPackets::Housing::HousingDecorRedeemDeferredDecor,
&Housing::HandleDecorRedeemDeferredDecorStage23>) && success;
success = EnableServerOpcode(SMSG_HOUSING_ROOM_UPDATE_RESPONSE) && success; success = EnableServerOpcode(SMSG_HOUSING_ROOM_UPDATE_RESPONSE) && success;
success = EnableServerOpcode(SMSG_HOUSING_ROOM_SET_COMPONENT_THEME_RESPONSE) && success; success = EnableServerOpcode(SMSG_HOUSING_ROOM_SET_COMPONENT_THEME_RESPONSE) && success;
success = EnableServerOpcode(SMSG_HOUSING_ROOM_APPLY_COMPONENT_MATERIALS_RESPONSE) && success; success = EnableServerOpcode(SMSG_HOUSING_ROOM_APPLY_COMPONENT_MATERIALS_RESPONSE) && success;
@@ -59,14 +68,16 @@ namespace Housing
success = EnableServerOpcode(SMSG_HOUSING_DECOR_REMOVE_RESPONSE) && success; success = EnableServerOpcode(SMSG_HOUSING_DECOR_REMOVE_RESPONSE) && success;
success = EnableServerOpcode(SMSG_HOUSING_DECOR_LOCK_RESPONSE) && success; success = EnableServerOpcode(SMSG_HOUSING_DECOR_LOCK_RESPONSE) && success;
success = EnableServerOpcode(SMSG_HOUSING_DECOR_SYSTEM_SET_DYE_SLOTS_RESPONSE) && success; success = EnableServerOpcode(SMSG_HOUSING_DECOR_SYSTEM_SET_DYE_SLOTS_RESPONSE) && success;
success = EnableServerOpcode(SMSG_HOUSING_DECOR_DELETE_FROM_STORAGE_RESPONSE) && success;
success = EnableServerOpcode(SMSG_HOUSING_REDEEM_DEFERRED_DECOR_RESPONSE) && success;
if (success) if (success)
{ {
installed = true; installed = true;
TC_LOG_INFO("housing", "Installed Stage 22 Housing Room routes and manager-backed Decoration mutation gates"); TC_LOG_INFO("housing", "Installed Stage 23 Housing routes with atomic Decoration storage mutations");
} }
else else
TC_LOG_ERROR("housing", "Stage 22 Housing route installation was incomplete"); TC_LOG_ERROR("housing", "Stage 23 Housing route installation was incomplete");
return success; return success;
} }