TrinityCore
ArtifactPackets.h
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef ArtifactPackets_h__
19#define ArtifactPackets_h__
20
21#include "Packet.h"
22#include "ObjectGuid.h"
23#include "PacketUtilities.h"
24
25namespace WorldPackets
26{
27 namespace Artifact
28 {
29 class ArtifactAddPower final : public ClientPacket
30 {
31 public:
33 {
36 };
37
39
40 void Read() override;
41
44 Array<ArtifactPowerChoice, 1 /*lua allows only 1 power per call*/> PowerChoices;
45 };
46
48 {
49 public:
51
52 void Read() override;
53
57 };
58
60 {
61 public:
63
64 void Read() override;
65
68 };
69
70 class OpenArtifactForge final : public ServerPacket
71 {
72 public:
74
75 WorldPacket const* Write() override;
76
79 };
80
82 {
83 public:
85
86 WorldPacket const* Write() override;
87
90 };
91
92 class ArtifactXpGain final : public ServerPacket
93 {
94 public:
96
97 WorldPacket const* Write() override;
98
101 };
102 }
103}
104
105#endif // ArtifactPackets_h__
uint8_t uint8
Definition: Define.h:144
int32_t int32
Definition: Define.h:138
uint64_t uint64
Definition: Define.h:141
Array< ArtifactPowerChoice, 1 > PowerChoices
WorldPacket const * Write() override
WorldPacket const * Write() override
@ CMSG_ARTIFACT_SET_APPEARANCE
Definition: Opcodes.h:70
@ CMSG_ARTIFACT_ADD_POWER
Definition: Opcodes.h:69
@ CMSG_CONFIRM_ARTIFACT_RESPEC
Definition: Opcodes.h:280
@ SMSG_ARTIFACT_XP_GAIN
Definition: Opcodes.h:953
@ SMSG_OPEN_ARTIFACT_FORGE
Definition: Opcodes.h:1668
@ SMSG_ARTIFACT_RESPEC_PROMPT
Definition: Opcodes.h:952
STL namespace.