mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-14 14:09:35 +01:00
Core/Packets: update & enabled CMSG_SHOWING_CLOAK, CMSG_SHOWING_HELM (#24394)
(cherry picked from commit a47d57d1db)
Co-authored-by: DJScias <zumbak04@gmail.com>
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#ifndef AllPackets_h__
|
||||
#define AllPackets_h__
|
||||
|
||||
#include "CharacterPackets.h"
|
||||
#include "ChatPackets.h"
|
||||
#include "CombatPackets.h"
|
||||
#include "GuildPackets.h"
|
||||
|
||||
28
src/server/game/Server/Packets/CharacterPackets.cpp
Normal file
28
src/server/game/Server/Packets/CharacterPackets.cpp
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* This file is part of the TrinityCore 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 General Public License as published by the
|
||||
* Free Software Foundation; either version 2 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 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;
|
||||
}
|
||||
49
src/server/game/Server/Packets/CharacterPackets.h
Normal file
49
src/server/game/Server/Packets/CharacterPackets.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* This file is part of the TrinityCore 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 General Public License as published by the
|
||||
* Free Software Foundation; either version 2 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 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;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // CharacterPackets_h__
|
||||
Reference in New Issue
Block a user