TrinityCore
Loading...
Searching...
No Matches
AchievementPackets.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_ACHIEVEMENT_PACKETS_H
19#define TRINITYCORE_ACHIEVEMENT_PACKETS_H
20
21#include "ObjectGuid.h"
22#include "Packet.h"
23#include "WowTime.h"
24
25namespace WorldPackets
26{
27 namespace Achievement
28 {
30 {
33 };
34
45
47 {
48 std::vector<EarnedAchievement> Earned;
49 std::vector<CriteriaProgress> Progress;
50 };
51
53 {
54 public:
56
57 WorldPacket const* Write() override;
58
60 };
61
72
74 {
75 public:
76 explicit CriteriaUpdate() : ServerPacket(SMSG_CRITERIA_UPDATE, 4 + 8 + 8 + 4 + 4 + 4 + 4) { }
77
78 WorldPacket const* Write() override;
79
87 };
88
90 {
91 public:
93
94 WorldPacket const* Write() override;
95
97 };
98
100 {
101 public:
103
104 WorldPacket const* Write() override;
105
107 };
108
110 {
111 public:
113
114 WorldPacket const* Write() override;
115
119 bool Initial = false;
120 };
121
123 {
124 public:
126
127 WorldPacket const* Write() override;
128
130 std::string Name;
132 bool DisplayLink = false;
133 };
134 }
135}
136
137#endif // TRINITYCORE_ACHIEVEMENT_PACKETS_H
uint64_t uint64
Definition Define.h:132
uint32_t uint32
Definition Define.h:133
Achievement
@ SMSG_ACHIEVEMENT_EARNED
Definition Opcodes.h:1157
@ SMSG_SERVER_FIRST_ACHIEVEMENT
Definition Opcodes.h:1205
@ SMSG_RESPOND_INSPECT_ACHIEVEMENTS
Definition Opcodes.h:1161
@ SMSG_CRITERIA_DELETED
Definition Opcodes.h:1211
@ SMSG_ALL_ACHIEVEMENT_DATA
Definition Opcodes.h:1178
@ SMSG_CRITERIA_UPDATE
Definition Opcodes.h:1159
@ SMSG_ACHIEVEMENT_DELETED
Definition Opcodes.h:1212
std::vector< CriteriaProgress > Progress
std::vector< EarnedAchievement > Earned