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 {
32 {
33 public:
35
36 void Read() override { }
37 };
38
56
58 {
59 std::string NewName;
61 };
62
74
88
90 {
91 public:
93
94 void Read() override;
95
108 std::shared_ptr<CharacterCreateInfo> CreateInfo;
109 };
110
112 {
113 public:
115
116 WorldPacket const* Write() override;
117
119 };
120
122 {
123 public:
125
126 void Read() override;
127
129 };
130
132 {
133 public:
135
136 WorldPacket const* Write() override;
137
139 };
140
142 {
143 public:
145
146 void Read() override;
147
152 std::shared_ptr<CharacterRenameInfo> RenameInfo;
153 };
154
156 {
157 public:
159
160 WorldPacket const* Write() override;
161
162 std::string_view Name;
165 };
166
168 {
169 public:
171
172 void Read() override;
173
184 std::shared_ptr<CharCustomizeInfo> CustomizeInfo;
185 };
186
188 {
189 public:
190 explicit CharCustomizeResult() : ServerPacket(SMSG_CHAR_CUSTOMIZE, 1 + 8 + 16 + 1 + 6) { }
191
192 WorldPacket const* Write() override;
193
196 };
197
199 {
200 public:
202
203 void Read() override;
204
217 std::shared_ptr<CharRaceOrFactionChangeInfo> RaceOrFactionChangeInfo;
218 };
219
230
232 {
233 public:
235
236 void Read() override;
237
238 bool ShowCloak = false;
239 };
240
242 {
243 public:
245
246 void Read() override;
247
248 bool ShowHelm = false;
249 };
250
252 {
253 public:
255
256 WorldPacket const* Write() override;
257
260 };
261
263 {
264 public:
266
267 void Read() override { }
268 };
269
271 {
272 public:
274
275 WorldPacket const* Write() override;
276
278 bool Instant = false;
279 };
280
282 {
283 public:
285
286 WorldPacket const* Write() override { return &_worldPacket; }
287 };
288
290 {
291 public:
293
294 void Read() override { }
295 };
296
298 {
299 public:
301
302 WorldPacket const* Write() override { return &_worldPacket; }
303 };
304
306 {
307 public:
309
310 void Read() override { }
311 };
312
314 {
315 public:
317
318 void Read() override;
319
321 };
322
324 {
325 public:
327
328 void Read() override;
329
330 bool TriggerScriptEvent = false;
331 };
332
334 {
335 public:
337
338 WorldPacket const* Write() override;
339
342 bool TriggerScriptEvent = false;
343 };
344 }
345}
346
347#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
@ CMSG_CHAR_ENUM
Definition Opcodes.h:84
@ SMSG_LOGOUT_RESPONSE
Definition Opcodes.h:105
@ CMSG_SET_ACTIONBAR_TOGGLES
Definition Opcodes.h:732
@ 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.