TrinityCore
Loading...
Searching...
No Matches
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 TRINITYCORE_ARTIFACT_PACKETS_H
19#define TRINITYCORE_ARTIFACT_PACKETS_H
20
21#include "Packet.h"
22#include "ObjectGuid.h"
23#include "PacketUtilities.h"
24
25namespace WorldPackets
26{
27 namespace Artifact
28 {
34
35 class ArtifactAddPower final : public ClientPacket
36 {
37 public:
38 explicit ArtifactAddPower(WorldPacket&& packet) : ClientPacket(CMSG_ARTIFACT_ADD_POWER, std::move(packet)) { }
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 // TRINITYCORE_ARTIFACT_PACKETS_H
uint8_t uint8
Definition Define.h:156
int32_t int32
Definition Define.h:150
uint64_t uint64
Definition Define.h:153
@ SMSG_ARTIFACT_XP_GAIN
Definition Opcodes.h:1147
@ SMSG_OPEN_ARTIFACT_FORGE
Definition Opcodes.h:2024
@ SMSG_ARTIFACT_RESPEC_PROMPT
Definition Opcodes.h:1146
@ CMSG_ARTIFACT_SET_APPEARANCE
Definition Opcodes.h:64
@ CMSG_ARTIFACT_ADD_POWER
Definition Opcodes.h:63
@ CMSG_CONFIRM_ARTIFACT_RESPEC
Definition Opcodes.h:281
Array< ArtifactPowerChoice, 1 > PowerChoices
WorldPacket const * Write() override
WorldPacket const * Write() override
STL namespace.