Core/Housing: stage 23 route atomic decor storage handlers
This commit is contained in:
@@ -49,6 +49,15 @@ namespace Housing
|
||||
success = InstallClientHandler(CMSG_HOUSING_DECOR_SET_DYE_SLOTS, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE,
|
||||
&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_SET_COMPONENT_THEME_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_LOCK_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)
|
||||
{
|
||||
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
|
||||
TC_LOG_ERROR("housing", "Stage 22 Housing route installation was incomplete");
|
||||
TC_LOG_ERROR("housing", "Stage 23 Housing route installation was incomplete");
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user