Core/Housing: stage 1 install tutorial opcode natively
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
#include "HousingDecorRedemptionSession.h"
|
||||
#include "HousingDecorSession.h"
|
||||
#include "HousingStorageSession.h"
|
||||
#include "HousingTutorialPackets.h"
|
||||
#include "HousingTutorialSession.h"
|
||||
|
||||
#define InstallSessionOpcodeHandlers InstallSessionOpcodeHandlersBase
|
||||
#define HandleDecorSetEditMode HandleDecorSetEditModeBase
|
||||
@@ -23,6 +25,9 @@ namespace Housing
|
||||
|
||||
bool success = InstallSessionOpcodeHandlersBase();
|
||||
|
||||
success = InstallClientHandler(CMSG_HOUSING_SVCS_START_TUTORIAL, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE,
|
||||
&CallSessionHandler<WorldPackets::Housing::HousingSvcsStartTutorial, &Housing::HandleStartTutorial>) && success;
|
||||
|
||||
success = InstallClientHandler(CMSG_HOUSING_ROOM_ROTATE, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE,
|
||||
&CallSessionHandler<WorldPackets::Housing::HousingRoomRotate, &Housing::HandleConnectedRoomRotate>) && success;
|
||||
success = InstallClientHandler(CMSG_HOUSING_ROOM_MOVE, STATUS_LOGGEDIN, PROCESS_THREADUNSAFE,
|
||||
@@ -66,7 +71,6 @@ namespace Housing
|
||||
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_SET_DOOR_TYPE_RESPONSE) && success;
|
||||
success = EnableServerOpcode(SMSG_HOUSING_ROOM_SET_CEILING_TYPE_RESPONSE) && success;
|
||||
success = EnableServerOpcode(SMSG_HOUSING_DECOR_PLACE_RESPONSE) && success;
|
||||
success = EnableServerOpcode(SMSG_HOUSING_DECOR_MOVE_RESPONSE) && success;
|
||||
success = EnableServerOpcode(SMSG_HOUSING_DECOR_REMOVE_RESPONSE) && success;
|
||||
@@ -78,7 +82,7 @@ namespace Housing
|
||||
if (success)
|
||||
{
|
||||
installed = true;
|
||||
TC_LOG_INFO("housing", "Installed Housing room and decoration routes");
|
||||
TC_LOG_INFO("housing", "Installed Housing tutorial, room and decoration routes");
|
||||
}
|
||||
else
|
||||
TC_LOG_ERROR("housing", "Housing route installation was incomplete");
|
||||
|
||||
Reference in New Issue
Block a user