mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
refactor(Core/Packet): Character packets (#9546)
* Character * Update CharacterHandler.cpp
This commit is contained in:
committed by
GitHub
parent
43ea4aa2df
commit
93322bcb4d
@@ -2625,6 +2625,7 @@ private:
|
|||||||
[[nodiscard]] float GetCombatRatingReduction(CombatRating cr) const;
|
[[nodiscard]] float GetCombatRatingReduction(CombatRating cr) const;
|
||||||
[[nodiscard]] uint32 GetCombatRatingDamageReduction(CombatRating cr, float rate, float cap, uint32 damage) const;
|
[[nodiscard]] uint32 GetCombatRatingDamageReduction(CombatRating cr, float rate, float cap, uint32 damage) const;
|
||||||
|
|
||||||
|
protected:
|
||||||
void SetFeared(bool apply);
|
void SetFeared(bool apply);
|
||||||
void SetConfused(bool apply);
|
void SetConfused(bool apply);
|
||||||
void SetStunned(bool apply);
|
void SetStunned(bool apply);
|
||||||
@@ -2632,6 +2633,7 @@ private:
|
|||||||
|
|
||||||
uint32 m_rootTimes;
|
uint32 m_rootTimes;
|
||||||
|
|
||||||
|
private:
|
||||||
uint32 m_state; // Even derived shouldn't modify
|
uint32 m_state; // Even derived shouldn't modify
|
||||||
uint32 m_CombatTimer;
|
uint32 m_CombatTimer;
|
||||||
uint32 m_lastManaUse; // msecs
|
uint32 m_lastManaUse; // msecs
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
#include "Battleground.h"
|
#include "Battleground.h"
|
||||||
#include "CalendarMgr.h"
|
#include "CalendarMgr.h"
|
||||||
#include "CharacterCache.h"
|
#include "CharacterCache.h"
|
||||||
|
#include "CharacterPackets.h"
|
||||||
#include "Chat.h"
|
#include "Chat.h"
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "DatabaseEnv.h"
|
#include "DatabaseEnv.h"
|
||||||
@@ -1199,9 +1200,9 @@ void WorldSession::HandlePlayerLoginToCharInWorld(Player* pCurrChar)
|
|||||||
|
|
||||||
_mask[i] = uint32(1) << (eff - (32 * i));
|
_mask[i] = uint32(1) << (eff - (32 * i));
|
||||||
int32 val = 0;
|
int32 val = 0;
|
||||||
for (SpellModList::const_iterator itr = spellMods.begin(); itr != spellMods.end(); ++itr)
|
for (auto const& spellMod : spellMods)
|
||||||
if ((*itr)->type == modType && (*itr)->mask & _mask)
|
if (spellMod->type == modType && spellMod->mask & _mask)
|
||||||
val += (*itr)->value;
|
val += spellMod->value;
|
||||||
|
|
||||||
if (val == 0)
|
if (val == 0)
|
||||||
continue;
|
continue;
|
||||||
@@ -1315,18 +1316,20 @@ void WorldSession::HandleSetFactionInactiveOpcode(WorldPacket& recvData)
|
|||||||
_player->GetReputationMgr().SetInactive(replistid, inactive);
|
_player->GetReputationMgr().SetInactive(replistid, inactive);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::HandleShowingHelmOpcode(WorldPacket& recvData)
|
void WorldSession::HandleShowingHelmOpcode(WorldPackets::Character::ShowingHelm& packet)
|
||||||
{
|
{
|
||||||
LOG_DEBUG("network.opcode", "CMSG_SHOWING_HELM for %s", _player->GetName().c_str());
|
if (packet.ShowHelm)
|
||||||
recvData.read_skip<uint8>(); // unknown, bool?
|
_player->RemoveFlag(PLAYER_FLAGS, PLAYER_FLAGS_HIDE_HELM);
|
||||||
_player->ToggleFlag(PLAYER_FLAGS, PLAYER_FLAGS_HIDE_HELM);
|
else
|
||||||
|
_player->SetFlag(PLAYER_FLAGS, PLAYER_FLAGS_HIDE_HELM);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::HandleShowingCloakOpcode(WorldPacket& recvData)
|
void WorldSession::HandleShowingCloakOpcode(WorldPackets::Character::ShowingCloak& packet)
|
||||||
{
|
{
|
||||||
LOG_DEBUG("network.opcode", "CMSG_SHOWING_CLOAK for %s", _player->GetName().c_str());
|
if (packet.ShowCloak)
|
||||||
recvData.read_skip<uint8>(); // unknown, bool?
|
_player->RemoveFlag(PLAYER_FLAGS, PLAYER_FLAGS_HIDE_CLOAK);
|
||||||
_player->ToggleFlag(PLAYER_FLAGS, PLAYER_FLAGS_HIDE_CLOAK);
|
else
|
||||||
|
_player->SetFlag(PLAYER_FLAGS, PLAYER_FLAGS_HIDE_CLOAK);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::HandleCharRenameOpcode(WorldPacket& recvData)
|
void WorldSession::HandleCharRenameOpcode(WorldPacket& recvData)
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#include "BattlefieldMgr.h"
|
#include "BattlefieldMgr.h"
|
||||||
#include "Battleground.h"
|
#include "Battleground.h"
|
||||||
#include "BattlegroundMgr.h"
|
#include "BattlegroundMgr.h"
|
||||||
|
#include "CharacterPackets.h"
|
||||||
#include "Chat.h"
|
#include "Chat.h"
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "CreatureAI.h"
|
#include "CreatureAI.h"
|
||||||
@@ -406,7 +407,7 @@ void WorldSession::HandleWhoOpcode(WorldPacket& recvData)
|
|||||||
FMT_LOG_DEBUG("network", "WORLD: Send SMSG_WHO Message");
|
FMT_LOG_DEBUG("network", "WORLD: Send SMSG_WHO Message");
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::HandleLogoutRequestOpcode(WorldPacket& /*recv_data*/)
|
void WorldSession::HandleLogoutRequestOpcode(WorldPackets::Character::LogoutRequest& /*logoutRequest*/)
|
||||||
{
|
{
|
||||||
LOG_DEBUG("network", "WORLD: Recvd CMSG_LOGOUT_REQUEST Message, security - %u", GetSecurity());
|
LOG_DEBUG("network", "WORLD: Recvd CMSG_LOGOUT_REQUEST Message, security - %u", GetSecurity());
|
||||||
|
|
||||||
@@ -433,14 +434,14 @@ void WorldSession::HandleLogoutRequestOpcode(WorldPacket& /*recv_data*/)
|
|||||||
else if (preventAfkSanctuaryLogout || preventAfkLogout || GetPlayer()->duel || GetPlayer()->HasAura(9454)) // is dueling or frozen by GM via freeze command
|
else if (preventAfkSanctuaryLogout || preventAfkLogout || GetPlayer()->duel || GetPlayer()->HasAura(9454)) // is dueling or frozen by GM via freeze command
|
||||||
reason = 2; // FIXME - Need the correct value
|
reason = 2; // FIXME - Need the correct value
|
||||||
|
|
||||||
WorldPacket data(SMSG_LOGOUT_RESPONSE, 1 + 4);
|
WorldPackets::Character::LogoutResponse logoutResponse;
|
||||||
data << uint32(reason);
|
logoutResponse.LogoutResult = reason;
|
||||||
data << uint8(instantLogout);
|
logoutResponse.Instant = instantLogout;
|
||||||
SendPacket(&data);
|
SendPacket(logoutResponse.Write());
|
||||||
|
|
||||||
if (reason)
|
if (reason)
|
||||||
{
|
{
|
||||||
LogoutRequest(0);
|
SetLogoutStartTime(0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -459,35 +460,27 @@ void WorldSession::HandleLogoutRequestOpcode(WorldPacket& /*recv_data*/)
|
|||||||
GetPlayer()->SetStandState(UNIT_STAND_STATE_SIT);
|
GetPlayer()->SetStandState(UNIT_STAND_STATE_SIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
WorldPacket data2(SMSG_FORCE_MOVE_ROOT, (8 + 4)); // guess size
|
GetPlayer()->SetRooted(true);
|
||||||
data2 << GetPlayer()->GetPackGUID();
|
|
||||||
data2 << (uint32)2;
|
|
||||||
SendPacket(&data2);
|
|
||||||
GetPlayer()->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED);
|
GetPlayer()->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED);
|
||||||
}
|
}
|
||||||
|
|
||||||
LogoutRequest(time(nullptr));
|
SetLogoutStartTime(time(nullptr));
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::HandlePlayerLogoutOpcode(WorldPacket& /*recv_data*/)
|
void WorldSession::HandlePlayerLogoutOpcode(WorldPackets::Character::PlayerLogout& /*playerLogout*/)
|
||||||
{
|
{
|
||||||
LOG_DEBUG("network", "WORLD: Recvd CMSG_PLAYER_LOGOUT Message");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::HandleLogoutCancelOpcode(WorldPacket& /*recv_data*/)
|
void WorldSession::HandleLogoutCancelOpcode(WorldPackets::Character::LogoutCancel& /*logoutCancel*/)
|
||||||
{
|
{
|
||||||
LogoutRequest(0);
|
SetLogoutStartTime(0);
|
||||||
|
|
||||||
WorldPacket data(SMSG_LOGOUT_CANCEL_ACK, 0);
|
SendPacket(WorldPackets::Character::LogoutCancelAck().Write());
|
||||||
SendPacket(&data);
|
|
||||||
|
|
||||||
// not remove flags if can't free move - its not set in Logout request code.
|
// not remove flags if can't free move - its not set in Logout request code.
|
||||||
if (GetPlayer()->CanFreeMove())
|
if (GetPlayer()->CanFreeMove())
|
||||||
{
|
{
|
||||||
data.Initialize(SMSG_FORCE_MOVE_UNROOT, 9 + 4);
|
GetPlayer()->SetRooted(false);
|
||||||
data << GetPlayer()->GetPackGUID();
|
|
||||||
data << uint32(0);
|
|
||||||
SendPacket(&data);
|
|
||||||
|
|
||||||
GetPlayer()->SetStandState(UNIT_STAND_STATE_STAND);
|
GetPlayer()->SetStandState(UNIT_STAND_STATE_STAND);
|
||||||
GetPlayer()->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED);
|
GetPlayer()->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED);
|
||||||
@@ -1000,16 +993,13 @@ void WorldSession::HandleSetActionBarToggles(WorldPacket& recv_data)
|
|||||||
GetPlayer()->SetByteValue(PLAYER_FIELD_BYTES, 2, ActionBar);
|
GetPlayer()->SetByteValue(PLAYER_FIELD_BYTES, 2, ActionBar);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::HandlePlayedTime(WorldPacket& recv_data)
|
void WorldSession::HandlePlayedTime(WorldPackets::Character::PlayedTimeClient& packet)
|
||||||
{
|
{
|
||||||
uint8 unk1;
|
WorldPackets::Character::PlayedTime playedTime;
|
||||||
recv_data >> unk1; // 0 or 1 expected
|
playedTime.TotalTime = _player->GetTotalPlayedTime();
|
||||||
|
playedTime.LevelTime = _player->GetLevelPlayedTime();
|
||||||
WorldPacket data(SMSG_PLAYED_TIME, 4 + 4 + 1);
|
playedTime.TriggerScriptEvent = packet.TriggerScriptEvent; // 0-1 - will not show in chat frame
|
||||||
data << uint32(_player->GetTotalPlayedTime());
|
SendPacket(playedTime.Write());
|
||||||
data << uint32(_player->GetLevelPlayedTime());
|
|
||||||
data << uint8(unk1); // 0 - will not show in chat frame
|
|
||||||
SendPacket(&data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::HandleInspectOpcode(WorldPacket& recv_data)
|
void WorldSession::HandleInspectOpcode(WorldPacket& recv_data)
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
#ifndef AllPackets_h__
|
#ifndef AllPackets_h__
|
||||||
#define AllPackets_h__
|
#define AllPackets_h__
|
||||||
|
|
||||||
|
#include "CharacterPackets.h"
|
||||||
#include "MiscPackets.h"
|
#include "MiscPackets.h"
|
||||||
#include "WorldStatePackets.h"
|
#include "WorldStatePackets.h"
|
||||||
#include "TotemPackets.h"
|
#include "TotemPackets.h"
|
||||||
|
|||||||
49
src/server/game/Server/Packets/CharacterPackets.cpp
Normal file
49
src/server/game/Server/Packets/CharacterPackets.cpp
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the AzerothCore Project. See AUTHORS file for Copyright information
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
|
* under the terms of the GNU Affero General Public License as published by the
|
||||||
|
* Free Software Foundation; either version 3 of the License, or (at your
|
||||||
|
* option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
|
||||||
|
* more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along
|
||||||
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "CharacterPackets.h"
|
||||||
|
|
||||||
|
void WorldPackets::Character::ShowingCloak::Read()
|
||||||
|
{
|
||||||
|
_worldPacket >> ShowCloak;
|
||||||
|
}
|
||||||
|
|
||||||
|
void WorldPackets::Character::ShowingHelm::Read()
|
||||||
|
{
|
||||||
|
_worldPacket >> ShowHelm;
|
||||||
|
}
|
||||||
|
|
||||||
|
WorldPacket const* WorldPackets::Character::LogoutResponse::Write()
|
||||||
|
{
|
||||||
|
_worldPacket << uint32(LogoutResult);
|
||||||
|
_worldPacket << uint8(Instant);
|
||||||
|
return &_worldPacket;
|
||||||
|
}
|
||||||
|
|
||||||
|
void WorldPackets::Character::PlayedTimeClient::Read()
|
||||||
|
{
|
||||||
|
_worldPacket >> TriggerScriptEvent;
|
||||||
|
}
|
||||||
|
|
||||||
|
WorldPacket const* WorldPackets::Character::PlayedTime::Write()
|
||||||
|
{
|
||||||
|
_worldPacket << uint32(TotalTime);
|
||||||
|
_worldPacket << uint32(LevelTime);
|
||||||
|
_worldPacket << uint8(TriggerScriptEvent);
|
||||||
|
|
||||||
|
return &_worldPacket;
|
||||||
|
}
|
||||||
122
src/server/game/Server/Packets/CharacterPackets.h
Normal file
122
src/server/game/Server/Packets/CharacterPackets.h
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the AzerothCore Project. See AUTHORS file for Copyright information
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
|
* under the terms of the GNU Affero General Public License as published by the
|
||||||
|
* Free Software Foundation; either version 3 of the License, or (at your
|
||||||
|
* option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
|
||||||
|
* more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along
|
||||||
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef CharacterPackets_h__
|
||||||
|
#define CharacterPackets_h__
|
||||||
|
|
||||||
|
#include "Packet.h"
|
||||||
|
|
||||||
|
namespace WorldPackets
|
||||||
|
{
|
||||||
|
namespace Character
|
||||||
|
{
|
||||||
|
class ShowingCloak final : public ClientPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ShowingCloak(WorldPacket&& packet) : ClientPacket(CMSG_SHOWING_CLOAK, std::move(packet)) { }
|
||||||
|
|
||||||
|
void Read() override;
|
||||||
|
|
||||||
|
bool ShowCloak = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
class ShowingHelm final : public ClientPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ShowingHelm(WorldPacket&& packet) : ClientPacket(CMSG_SHOWING_HELM, std::move(packet)) { }
|
||||||
|
|
||||||
|
void Read() override;
|
||||||
|
|
||||||
|
bool ShowHelm = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
class LogoutRequest final : public ClientPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
LogoutRequest(WorldPacket&& packet) : ClientPacket(std::move(packet)) { }
|
||||||
|
|
||||||
|
void Read() override { }
|
||||||
|
};
|
||||||
|
|
||||||
|
class LogoutResponse final : public ServerPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
LogoutResponse() : ServerPacket(SMSG_LOGOUT_RESPONSE, 4 + 1) { }
|
||||||
|
|
||||||
|
WorldPacket const* Write() override;
|
||||||
|
|
||||||
|
uint32 LogoutResult = 0;
|
||||||
|
bool Instant = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
class LogoutComplete final : public ServerPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
LogoutComplete() : ServerPacket(SMSG_LOGOUT_COMPLETE, 0) { }
|
||||||
|
|
||||||
|
WorldPacket const* Write() override { return &_worldPacket; }
|
||||||
|
};
|
||||||
|
|
||||||
|
class LogoutCancel final : public ClientPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
LogoutCancel(WorldPacket&& packet) : ClientPacket(std::move(packet)) { }
|
||||||
|
|
||||||
|
void Read() override { }
|
||||||
|
};
|
||||||
|
|
||||||
|
class LogoutCancelAck final : public ServerPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
LogoutCancelAck() : ServerPacket(SMSG_LOGOUT_CANCEL_ACK, 0) { }
|
||||||
|
|
||||||
|
WorldPacket const* Write() override { return &_worldPacket; }
|
||||||
|
};
|
||||||
|
|
||||||
|
class PlayerLogout final : public ClientPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PlayerLogout(WorldPacket&& packet) : ClientPacket(std::move(packet)) { }
|
||||||
|
|
||||||
|
void Read() override { }
|
||||||
|
};
|
||||||
|
|
||||||
|
class PlayedTimeClient final : public ClientPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PlayedTimeClient(WorldPacket&& packet) : ClientPacket(CMSG_PLAYED_TIME, std::move(packet)) { }
|
||||||
|
|
||||||
|
void Read() override;
|
||||||
|
|
||||||
|
bool TriggerScriptEvent = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
class PlayedTime final : public ServerPacket
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PlayedTime() : ServerPacket(SMSG_PLAYED_TIME, 9) { }
|
||||||
|
|
||||||
|
WorldPacket const* Write() override;
|
||||||
|
|
||||||
|
uint32 TotalTime = 0;
|
||||||
|
uint32 LevelTime = 0;
|
||||||
|
bool TriggerScriptEvent = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // CharacterPackets_h__
|
||||||
@@ -22,6 +22,7 @@
|
|||||||
#include "WorldSession.h"
|
#include "WorldSession.h"
|
||||||
#include "AccountMgr.h"
|
#include "AccountMgr.h"
|
||||||
#include "BattlegroundMgr.h"
|
#include "BattlegroundMgr.h"
|
||||||
|
#include "CharacterPackets.h"
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "DatabaseEnv.h"
|
#include "DatabaseEnv.h"
|
||||||
#include "Group.h"
|
#include "Group.h"
|
||||||
@@ -687,8 +688,7 @@ void WorldSession::LogoutPlayer(bool save)
|
|||||||
|
|
||||||
//! Send the 'logout complete' packet to the client
|
//! Send the 'logout complete' packet to the client
|
||||||
//! Client will respond by sending 3x CMSG_CANCEL_TRADE, which we currently dont handle
|
//! Client will respond by sending 3x CMSG_CANCEL_TRADE, which we currently dont handle
|
||||||
WorldPacket data(SMSG_LOGOUT_COMPLETE, 0);
|
SendPacket(WorldPackets::Character::LogoutComplete().Write());
|
||||||
SendPacket(&data);
|
|
||||||
LOG_DEBUG("network", "SESSION: Sent SMSG_LOGOUT_COMPLETE Message");
|
LOG_DEBUG("network", "SESSION: Sent SMSG_LOGOUT_COMPLETE Message");
|
||||||
|
|
||||||
//! Since each account can only have one online character at any given time, ensure all characters for active account are marked as offline
|
//! Since each account can only have one online character at any given time, ensure all characters for active account are marked as offline
|
||||||
@@ -699,7 +699,7 @@ void WorldSession::LogoutPlayer(bool save)
|
|||||||
|
|
||||||
m_playerLogout = false;
|
m_playerLogout = false;
|
||||||
m_playerSave = false;
|
m_playerSave = false;
|
||||||
LogoutRequest(0);
|
SetLogoutStartTime(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Kick a player out of the World
|
/// Kick a player out of the World
|
||||||
|
|||||||
@@ -71,6 +71,16 @@ namespace lfg
|
|||||||
|
|
||||||
namespace WorldPackets
|
namespace WorldPackets
|
||||||
{
|
{
|
||||||
|
namespace Character
|
||||||
|
{
|
||||||
|
class LogoutCancel;
|
||||||
|
class LogoutRequest;
|
||||||
|
class ShowingCloak;
|
||||||
|
class ShowingHelm;
|
||||||
|
class PlayerLogout;
|
||||||
|
class PlayedTimeClient;
|
||||||
|
}
|
||||||
|
|
||||||
namespace Totem
|
namespace Totem
|
||||||
{
|
{
|
||||||
class TotemDestroyed;
|
class TotemDestroyed;
|
||||||
@@ -342,7 +352,7 @@ public:
|
|||||||
bool isLogingOut() const { return _logoutTime || m_playerLogout; }
|
bool isLogingOut() const { return _logoutTime || m_playerLogout; }
|
||||||
|
|
||||||
/// Engage the logout process for the user
|
/// Engage the logout process for the user
|
||||||
void LogoutRequest(time_t requestTime)
|
void SetLogoutStartTime(time_t requestTime)
|
||||||
{
|
{
|
||||||
_logoutTime = requestTime;
|
_logoutTime = requestTime;
|
||||||
}
|
}
|
||||||
@@ -515,7 +525,7 @@ public: // opcodes handlers
|
|||||||
void SendSetPlayerDeclinedNamesResult(DeclinedNameResult result, ObjectGuid guid);
|
void SendSetPlayerDeclinedNamesResult(DeclinedNameResult result, ObjectGuid guid);
|
||||||
|
|
||||||
// played time
|
// played time
|
||||||
void HandlePlayedTime(WorldPacket& recvPacket);
|
void HandlePlayedTime(WorldPackets::Character::PlayedTimeClient& packet);
|
||||||
|
|
||||||
// new
|
// new
|
||||||
void HandleMoveUnRootAck(WorldPacket& recvPacket);
|
void HandleMoveUnRootAck(WorldPacket& recvPacket);
|
||||||
@@ -535,8 +545,8 @@ public: // opcodes handlers
|
|||||||
void HandleMountSpecialAnimOpcode(WorldPacket& recvdata);
|
void HandleMountSpecialAnimOpcode(WorldPacket& recvdata);
|
||||||
|
|
||||||
// character view
|
// character view
|
||||||
void HandleShowingHelmOpcode(WorldPacket& recvData);
|
void HandleShowingHelmOpcode(WorldPackets::Character::ShowingHelm& packet);
|
||||||
void HandleShowingCloakOpcode(WorldPacket& recvData);
|
void HandleShowingCloakOpcode(WorldPackets::Character::ShowingCloak& packet);
|
||||||
|
|
||||||
// repair
|
// repair
|
||||||
void HandleRepairItemOpcode(WorldPacket& recvPacket);
|
void HandleRepairItemOpcode(WorldPacket& recvPacket);
|
||||||
@@ -554,9 +564,9 @@ public: // opcodes handlers
|
|||||||
void HandleLootReleaseOpcode(WorldPacket& recvPacket);
|
void HandleLootReleaseOpcode(WorldPacket& recvPacket);
|
||||||
void HandleLootMasterGiveOpcode(WorldPacket& recvPacket);
|
void HandleLootMasterGiveOpcode(WorldPacket& recvPacket);
|
||||||
void HandleWhoOpcode(WorldPacket& recvPacket);
|
void HandleWhoOpcode(WorldPacket& recvPacket);
|
||||||
void HandleLogoutRequestOpcode(WorldPacket& recvPacket);
|
void HandleLogoutRequestOpcode(WorldPackets::Character::LogoutRequest& logoutRequest);
|
||||||
void HandlePlayerLogoutOpcode(WorldPacket& recvPacket);
|
void HandlePlayerLogoutOpcode(WorldPackets::Character::PlayerLogout& playerLogout);
|
||||||
void HandleLogoutCancelOpcode(WorldPacket& recvPacket);
|
void HandleLogoutCancelOpcode(WorldPackets::Character::LogoutCancel& logoutCancel);
|
||||||
|
|
||||||
// GM Ticket opcodes
|
// GM Ticket opcodes
|
||||||
void HandleGMTicketCreateOpcode(WorldPacket& recvPacket);
|
void HandleGMTicketCreateOpcode(WorldPacket& recvPacket);
|
||||||
|
|||||||
Reference in New Issue
Block a user