TrinityCore
Loading...
Searching...
No Matches
CharacterPackets.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 CharacterPackets_h__
19#define CharacterPackets_h__
20
21#include "Packet.h"
22#include "ObjectGuid.h"
23#include "Position.h"
24#include "SharedDefines.h"
25#include <memory>
26
27namespace WorldPackets
28{
29 namespace Character
30 {
48
50 {
51 std::string NewName;
53 };
54
66
80
82 {
83 public:
85
86 void Read() override;
87
100 std::shared_ptr<CharacterCreateInfo> CreateInfo;
101 };
102
104 {
105 public:
107
108 WorldPacket const* Write() override;
109
111 };
112
114 {
115 public:
117
118 void Read() override;
119
121 };
122
124 {
125 public:
127
128 WorldPacket const* Write() override;
129
131 };
132
134 {
135 public:
137
138 void Read() override;
139
144 std::shared_ptr<CharacterRenameInfo> RenameInfo;
145 };
146
148 {
149 public:
151
152 WorldPacket const* Write() override;
153
154 std::string_view Name;
157 };
158
160 {
161 public:
163
164 void Read() override;
165
176 std::shared_ptr<CharCustomizeInfo> CustomizeInfo;
177 };
178
180 {
181 public:
182 explicit CharCustomizeResult() : ServerPacket(SMSG_CHAR_CUSTOMIZE, 1 + 8 + 16 + 1 + 6) { }
183
184 WorldPacket const* Write() override;
185
188 };
189
191 {
192 public:
194
195 void Read() override;
196
209 std::shared_ptr<CharRaceOrFactionChangeInfo> RaceOrFactionChangeInfo;
210 };
211
222
224 {
225 public:
227
228 void Read() override;
229
230 bool ShowCloak = false;
231 };
232
234 {
235 public:
237
238 void Read() override;
239
240 bool ShowHelm = false;
241 };
242
244 {
245 public:
247
248 WorldPacket const* Write() override;
249
252 };
253
255 {
256 public:
258
259 void Read() override { }
260 };
261
263 {
264 public:
266
267 WorldPacket const* Write() override;
268
270 bool Instant = false;
271 };
272
274 {
275 public:
277
278 WorldPacket const* Write() override { return &_worldPacket; }
279 };
280
282 {
283 public:
285
286 void Read() override { }
287 };
288
290 {
291 public:
293
294 WorldPacket const* Write() override { return &_worldPacket; }
295 };
296
298 {
299 public:
301
302 void Read() override { }
303 };
304
306 {
307 public:
309
310 void Read() override;
311
312 bool TriggerScriptEvent = false;
313 };
314
316 {
317 public:
319
320 WorldPacket const* Write() override;
321
324 bool TriggerScriptEvent = false;
325 };
326 }
327}
328
329#endif // CharacterPackets_h__
uint8_t uint8
Definition Define.h:135
int32_t int32
Definition Define.h:129
uint32_t uint32
Definition Define.h:133
@ GENDER_NONE
@ RACE_NONE
std::shared_ptr< CharCustomizeInfo > CustomizeInfo
ObjectGuid Guid
Guid of the character to delete.
CharRaceOrFactionChangeInfo const * RaceOrFactionChangeInfo
std::shared_ptr< CharRaceOrFactionChangeInfo > RaceOrFactionChangeInfo
std::shared_ptr< CharacterRenameInfo > RenameInfo
WorldPacket const * Write() override
std::shared_ptr< CharacterCreateInfo > CreateInfo
WorldPacket const * Write() override
TaggedPosition< Position::XYZO > Pos
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket const * Write() override
WorldPacket _worldPacket
Definition Packet.h:42
@ SMSG_CHAR_RENAME
Definition Opcodes.h:741
@ CMSG_SHOWING_HELM
Definition Opcodes.h:726
@ SMSG_CHAR_CREATE
Definition Opcodes.h:87
@ SMSG_CHAR_FACTION_CHANGE
Definition Opcodes.h:1271
@ CMSG_PLAYED_TIME
Definition Opcodes.h:489
@ SMSG_LOGOUT_RESPONSE
Definition Opcodes.h:105
@ CMSG_CHAR_DELETE
Definition Opcodes.h:85
@ CMSG_CHAR_CUSTOMIZE
Definition Opcodes.h:1168
@ CMSG_SHOWING_CLOAK
Definition Opcodes.h:727
@ CMSG_CHAR_RENAME
Definition Opcodes.h:740
@ SMSG_LOGOUT_COMPLETE
Definition Opcodes.h:106
@ SMSG_LOGIN_VERIFY_WORLD
Definition Opcodes.h:595
@ SMSG_CHAR_DELETE
Definition Opcodes.h:89
@ CMSG_CHAR_CREATE
Definition Opcodes.h:83
@ SMSG_CHAR_CUSTOMIZE
Definition Opcodes.h:1169
@ SMSG_LOGOUT_CANCEL_ACK
Definition Opcodes.h:108
@ SMSG_PLAYED_TIME
Definition Opcodes.h:490
STL namespace.