TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CharacterPackets.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
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 "Player.h"
23 #include "PacketUtilities.h"
24 
25 namespace WorldPackets
26 {
27  namespace Character
28  {
29  class EnumCharacters final : public ClientPacket
30  {
31  public:
32  EnumCharacters(WorldPacket&& packet) : ClientPacket(std::move(packet))
33  {
35  }
36 
37  void Read() override { }
38  };
39 
41  {
46  uint8 Skin = 0;
47  uint8 Face = 0;
53  std::string Name;
54 
57  };
58 
60  {
61  std::string NewName;
63  };
64 
66  {
71  std::string CharName;
75  };
76 
78  {
85  bool FactionChange = false;
86  std::string Name;
89  };
90 
92  {
96 
98  std::string Name;
99  };
100 
101  class EnumCharactersResult final : public ServerPacket
102  {
103  public:
105  {
113  CharacterInfo(Field* fields);
114 
116  std::string Name;
118  uint8 Race = 0;
120  uint8 Sex = 0;
121  uint8 Skin = 0;
122  uint8 Face = 0;
131  uint32 Flags = 0;
134  bool FirstLogin = false;
137 
138  struct PetInfo
139  {
141  uint32 Level = 0;
143  } Pet;
144 
145  bool BoostInProgress = false;
147 
149  {
153  };
154 
155  VisualItemInfo VisualItems[INVENTORY_SLOT_BAG_END];
156  };
157 
159  {
161  : Mask(mask), Race(race) { }
162 
163  int32 Mask = 0;
164  uint8 Race = 0;
165  };
166 
168 
169  WorldPacket const* Write() override;
170 
171  bool Success = false;
172  bool IsDeletedCharacters = false;
173 
174  std::list<CharacterInfo> Characters;
175  std::list<RestrictedFactionChangeRuleInfo> FactionChangeRestrictions;
176  };
177 
178  class CreateCharacter final : public ClientPacket
179  {
180  public:
182 
183  void Read() override;
184 
198  std::shared_ptr<CharacterCreateInfo> CreateInfo;
199  };
200 
201  class CreateChar final : public ServerPacket
202  {
203  public:
205 
206  WorldPacket const* Write() override;
207 
208  uint8 Code = 0;
209  };
210 
211  class CharDelete final : public ClientPacket
212  {
213  public:
214  CharDelete(WorldPacket&& packet): ClientPacket(CMSG_CHAR_DELETE, std::move(packet)) { }
215 
216  void Read() override;
217 
219  };
220 
221  class DeleteChar final : public ServerPacket
222  {
223  public:
225 
226  WorldPacket const* Write() override;
227 
228  uint8 Code = 0;
229  };
230 
232  {
233  public:
235 
236  void Read() override;
237 
242  std::shared_ptr<CharacterRenameInfo> RenameInfo;
243  };
244 
245  class CharacterRenameResult final : public ServerPacket
246  {
247  public:
249 
250  WorldPacket const* Write() override;
251 
252  std::string Name;
255  };
256 
257  class CharCustomize final : public ClientPacket
258  {
259  public:
261 
262  void Read() override;
263 
274  std::shared_ptr<CharCustomizeInfo> CustomizeInfo;
275  };
276 
278 
280  {
281  public:
283 
284  void Read() override;
285 
298  std::shared_ptr<CharRaceOrFactionChangeInfo> RaceOrFactionChangeInfo;
299  };
300 
302  {
303  public:
305  {
306  std::string Name;
314  };
315 
317 
318  WorldPacket const* Write() override;
319 
320  uint8 Result = 0;
323  };
324 
326  {
327  public:
329 
330  void Read() override;
331 
332  uint8 Sex = 0;
333  uint8 Race = 0;
334  };
335 
337  {
338  public:
340 
341  WorldPacket const* Write() override;
342 
343  std::string Name;
344  bool Success = false;
345  };
346 
347  class ReorderCharacters final : public ClientPacket
348  {
349  public:
350  struct ReorderInfo
351  {
354  };
355 
356  ReorderCharacters(WorldPacket&& packet);
357 
358  void Read() override;
359 
361  };
362 
363  class UndeleteCharacter final : public ClientPacket
364  {
365  public:
367 
368  void Read() override;
369 
374  std::shared_ptr<CharacterUndeleteInfo> UndeleteInfo;
375  };
376 
378  {
379  public:
381 
382  WorldPacket const* Write() override;
383 
390  };
391 
393  {
394  public:
396 
397  void Read() override { }
398  };
399 
401  {
402  public:
404 
405  WorldPacket const* Write() override;
406 
407  bool OnCooldown = false;
410  };
411 
412  class PlayerLogin final : public ClientPacket
413  {
414  public:
415  PlayerLogin(WorldPacket&& packet) : ClientPacket(CMSG_PLAYER_LOGIN, std::move(packet)) { }
416 
417  void Read() override;
418 
420  float FarClip = 0.0f;
421  };
422 
423  class LoginVerifyWorld final : public ServerPacket
424  {
425  public:
427 
428  WorldPacket const* Write() override;
429 
430  int32 MapID = -1;
433  };
434 
436  {
437  Failed = 0,
438  NoWorld = 1,
439  DuplicateCharacter = 2,
440  NoInstances = 3,
441  Disabled = 4,
442  NoCharacter = 5,
443  LockedForTransfer = 6,
444  LockedByBilling = 7,
445  LockedByMobileAH = 8,
446  TemporaryGMLock = 9,
449  };
450 
451  class CharacterLoginFailed final : public ServerPacket
452  {
453  public:
455 
456  WorldPacket const* Write() override;
457 
459  };
460 
461  class LogoutRequest final : public ClientPacket
462  {
463  public:
465 
466  void Read() override { }
467  };
468 
469  class LogoutResponse final : public ServerPacket
470  {
471  public:
473 
474  WorldPacket const* Write() override;
475 
477  bool Instant = false;
478  };
479 
480  class LogoutComplete final : public ServerPacket
481  {
482  public:
484 
485  WorldPacket const* Write() override;
486 
488  };
489 
490  class LogoutCancel final : public ClientPacket
491  {
492  public:
494 
495  void Read() override { }
496  };
497 
498  class LogoutCancelAck final : public ServerPacket
499  {
500  public:
502 
503  WorldPacket const* Write() override { return &_worldPacket; }
504  };
505 
506  class LoadingScreenNotify final : public ClientPacket
507  {
508  public:
510 
511  void Read() override;
512 
513  int32 MapID = -1;
514  bool Showing = false;
515  };
516 
517  class InitialSetup final : public ServerPacket
518  {
519  public:
521 
522  WorldPacket const* Write() override;
523 
526  time_t RaidOrigin = time_t(1135753200); // 28/12/2005 07:00:00
527  int32 ServerRegionID = 3; // Cfg_Regions.dbc, EU
528  };
529 
530  class SetActionBarToggles final : public ClientPacket
531  {
532  public:
534 
535  void Read() override;
536 
537  uint8 Mask = 0;
538  };
539 
540  class RequestPlayedTime final : public ClientPacket
541  {
542  public:
544 
545  void Read() override;
546 
547  bool TriggerScriptEvent = false;
548  };
549 
550  class PlayedTime final : public ServerPacket
551  {
552  public:
554 
555  WorldPacket const* Write() override;
556 
559  bool TriggerEvent = false;
560  };
561 
562  class ShowingCloak final : public ClientPacket
563  {
564  public:
566 
567  void Read() override;
568 
569  bool ShowCloak = false;
570  };
571 
572  class ShowingHelm final : public ClientPacket
573  {
574  public:
575  ShowingHelm(WorldPacket&& packet) : ClientPacket(CMSG_SHOWING_HELM, std::move(packet)) { }
576 
577  void Read() override;
578 
579  bool ShowHelm = false;
580  };
581 
582  class SetTitle final : public ClientPacket
583  {
584  public:
585  SetTitle(WorldPacket&& packet) : ClientPacket(CMSG_SET_TITLE, std::move(packet)) { }
586 
587  void Read() override;
588 
590  };
591 
592  class AlterApperance final : public ClientPacket
593  {
594  public:
596 
597  void Read() override;
598 
604  };
605 
607  {
608  public:
610 
611  WorldPacket const* Write() override;
612 
614  };
615 
616  class LogXPGain final : public ServerPacket
617  {
618  public:
620 
621  WorldPacket const* Write() override;
622 
627  float GroupBonus = 0;
628  bool ReferAFriend = false;
629  };
630 
631  class TitleEarned final : public ServerPacket
632  {
633  public:
634  TitleEarned(OpcodeServer opcode) : ServerPacket(opcode, 4) { }
635 
636  WorldPacket const* Write() override;
637 
639  };
640 
641  class SetFactionAtWar final : public ClientPacket
642  {
643  public:
645 
646  void Read() override;
647 
649  };
650 
651  class SetFactionNotAtWar final : public ClientPacket
652  {
653  public:
655 
656  void Read() override;
657 
659  };
660 
661  class SetFactionInactive final : public ClientPacket
662  {
663  public:
665 
666  void Read() override;
667 
669  bool State = false;
670  };
671 
672  class SetWatchedFaction final : public ClientPacket
673  {
674  public:
676 
677  void Read() override;
678 
680  };
681 
683  {
684  public:
686 
687  WorldPacket const* Write() override;
688 
690  };
691 
692  class CharCustomizeResponse final : public ServerPacket
693  {
694  public:
695  CharCustomizeResponse() : ServerPacket(SMSG_CHAR_CUSTOMIZE, 16 + 1 + 1 + 1 + 1 + 1 + 1 + 1) { }
696  CharCustomizeResponse(CharCustomizeInfo const* customizeInfo);
697 
698  WorldPacket const* Write() override;
699 
701  std::string CharName;
708  };
709 
710  class CharCustomizeFailed final : public ServerPacket
711  {
712  public:
714 
715  WorldPacket const* Write() override;
716 
719  };
720 
722  {
723  public:
725 
726  void Read() override;
727 
730  };
731 
733  {
734  public:
736 
737  WorldPacket const* Write() override;
738 
741  };
742  }
743 }
744 
745 #endif // CharacterPackets_h__
BarberShopResult Result
Definition: CharacterPackets.h:613
BarberShopResult
Definition: WorldSession.h:789
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:116
Definition: CharacterPackets.h:721
CharacterRenameRequest(WorldPacket &&packet)
Definition: CharacterPackets.h:234
Definition: Opcodes.h:1502
GenerateRandomCharacterNameResult()
Definition: CharacterPackets.h:339
std::string CharName
Definition: CharacterPackets.h:701
void Read() override
Definition: CharacterPackets.cpp:215
ReorderCharacters(WorldPacket &&packet)
Definition: CharacterPackets.cpp:326
uint8 FacialHair
Definition: CharacterPackets.h:125
Definition: CharacterPackets.h:592
Definition: CharacterPackets.h:651
uint8 FaceID
Definition: CharacterPackets.h:68
int32 ClientToken
Definition: CharacterPackets.h:95
std::list< CharacterInfo > Characters
all characters on the list
Definition: CharacterPackets.h:174
int32 ServerRegionID
Definition: CharacterPackets.h:527
uint8 HairColor
Definition: CharacterPackets.h:124
SetFactionNotAtWar(WorldPacket &&packet)
Definition: CharacterPackets.h:654
SetFactionVisible(bool visible)
Definition: CharacterPackets.h:685
uint32 CustomizationFlag
Character customization flags.
Definition: CharacterPackets.h:132
std::string CharName
Definition: CharacterPackets.h:71
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:508
Definition: CharacterPackets.h:480
uint8 HairColor
Definition: CharacterPackets.h:49
void Read() override
Definition: CharacterPackets.cpp:332
Definition: Opcodes.h:389
Definition: CharacterPackets.h:641
CharRaceOrFactionChange(WorldPacket &&packet)
Definition: CharacterPackets.h:282
Position Pos
Definition: CharacterPackets.h:431
SetActionBarToggles(WorldPacket &&packet)
Definition: CharacterPackets.h:533
ObjectGuid Guid
Guid of the player that is logging in.
Definition: CharacterPackets.h:419
int32 TotalTime
Definition: CharacterPackets.h:557
float FarClip
Visibility distance (for terrain)
Definition: CharacterPackets.h:420
uint8 ServerExpansionLevel
Definition: CharacterPackets.h:525
Definition: Opcodes.h:935
uint8 Class
Definition: CharacterPackets.h:119
uint8 ListPosition
Order of the characters in list.
Definition: CharacterPackets.h:117
uint8 HairColorID
Definition: CharacterPackets.h:72
Definition: Opcodes.h:162
Definition: CharacterPackets.h:672
Definition: Opcodes.h:974
TitleEarned(OpcodeServer opcode)
Definition: CharacterPackets.h:634
int32 MapId
Definition: CharacterPackets.h:128
Definition: CharacterPackets.h:231
Definition: CharacterPackets.h:65
bool Instant
Definition: CharacterPackets.h:477
Definition: CharacterPackets.h:469
uint32 Flags3
Character flags 3.
Definition: CharacterPackets.h:133
std::string Name
Definition: CharacterPackets.h:53
bool IsDeletedCharacters
used for character undelete list
Definition: CharacterPackets.h:172
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:358
CharCustomize(WorldPacket &&packet)
Definition: CharacterPackets.h:260
uint8 Sex
Definition: CharacterPackets.h:45
uint32 NewHairStyle
Definition: CharacterPackets.h:599
Definition: Opcodes.h:263
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:386
Definition: Opcodes.h:572
uint8 Face
Definition: CharacterPackets.h:122
Definition: SharedDefines.h:101
ObjectGuid Guid
Definition: CharacterPackets.h:62
Definition: Opcodes.h:643
void Read() override
Definition: CharacterPackets.h:397
std::list< RestrictedFactionChangeRuleInfo > FactionChangeRestrictions
Definition: CharacterPackets.h:175
Definition: CharacterPackets.h:506
int32 ProfessionIds[2]
Definition: CharacterPackets.h:146
Definition: CharacterPackets.h:59
Class used to access individual fields of database query result.
Definition: Field.h:56
ObjectGuid CharacterGuid
User specified variables.
Definition: CharacterPackets.h:94
RequestPlayedTime(WorldPacket &&packet)
Definition: CharacterPackets.h:543
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:426
G3D::Vector3 PreLoadPosition
Definition: CharacterPackets.h:129
Definition: Opcodes.h:894
std::string Name
Server side data.
Definition: CharacterPackets.h:98
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:198
Definition: Opcodes.h:509
CharCustomizeResponse()
Definition: CharacterPackets.h:695
void Read() override
Definition: CharacterPackets.cpp:366
uint32 MaxCooldown
Max. cooldown until next free character restoration. Displayed in undelete confirm message...
Definition: CharacterPackets.h:408
uint8 Class
Definition: CharacterPackets.h:44
Definition: Opcodes.h:385
uint8 Code
Result code.
Definition: CharacterPackets.h:228
WorldPacket const * Write() override
Definition: CharacterPackets.h:503
Definition: Opcodes.h:1512
STL namespace.
Definition: Opcodes.h:1592
uint8 ServerExpansionTier
Definition: CharacterPackets.h:524
uint8 SexID
Definition: CharacterPackets.h:702
void Read() override
Definition: CharacterPackets.cpp:503
Definition: Opcodes.h:638
uint8 FactionIndex
Definition: CharacterPackets.h:648
bool State
Definition: CharacterPackets.h:669
Definition: CharacterPackets.h:423
void Read() override
Definition: CharacterPackets.cpp:309
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:209
bool ShowCloak
Definition: CharacterPackets.h:569
void Read() override
Definition: CharacterPackets.cpp:400
Definition: Opcodes.h:1195
Array< ReorderInfo > Entries
Definition: CharacterPackets.h:360
SetTitle(WorldPacket &&packet)
Definition: CharacterPackets.h:585
Definition: Opcodes.h:58
uint32 NewSkinColor
Definition: CharacterPackets.h:602
PlayerLogin(WorldPacket &&packet)
Definition: CharacterPackets.h:415
Definition: Opcodes.h:644
Definition: Opcodes.h:619
uint8 Race
Definition: CharacterPackets.h:333
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:349
void Read() override
Definition: CharacterPackets.cpp:204
LogoutRequest(WorldPacket &&packet)
Definition: CharacterPackets.h:464
Definition: CharacterPackets.h:498
Definition: Opcodes.h:231
Definition: WorldSession.h:791
WorldPacket _worldPacket
Definition: Packet.h:43
int32 ZoneId
Definition: CharacterPackets.h:127
uint8 Face
Definition: CharacterPackets.h:47
Definition: Opcodes.h:896
InventoryType
Definition: ItemTemplate.h:330
void Read() override
Definition: CharacterPackets.cpp:551
Definition: Opcodes.h:603
Definition: CharacterPackets.h:517
uint32 CreatureDisplayId
PetCreatureDisplayID.
Definition: CharacterPackets.h:140
uint8 Level
Definition: CharacterPackets.h:126
uint8 Reason
Definition: CharacterPackets.h:625
Definition: Opcodes.h:777
void Read() override
Definition: CharacterPackets.h:495
CreateCharacter(WorldPacket &&packet)
Definition: CharacterPackets.h:181
Definition: Vector3.h:58
uint8 Code
Result code.
Definition: CharacterPackets.h:208
ObjectGuid Guid
Definition: CharacterPackets.h:321
ObjectGuid Player
Definition: CharacterPackets.h:739
bool Success
Definition: CharacterPackets.h:171
RestrictedFactionChangeRuleInfo(int32 mask, uint8 race)
Definition: CharacterPackets.h:160
DeclinedName DeclinedNames
Definition: CharacterPackets.h:729
Definition: CharacterPackets.h:245
Definition: CharacterPackets.h:682
ShowingHelm(WorldPacket &&packet)
Definition: CharacterPackets.h:575
Definition: Opcodes.h:947
uint8 FacialHairStyleID
Definition: CharacterPackets.h:73
uint32 CurrentCooldown
Current cooldown until next free character restoration. (in sec)
Definition: CharacterPackets.h:409
CharacterRenameResult()
Definition: CharacterPackets.h:248
uint8 Result
Definition: CharacterPackets.h:253
Definition: CharacterPackets.h:279
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:406
Definition: CharacterPackets.h:530
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:564
Definition: CharacterPackets.h:710
Definition: Opcodes.h:161
void Read() override
Definition: CharacterPackets.cpp:178
uint8 Race
User specified variables.
Definition: CharacterPackets.h:43
CharDelete(WorldPacket &&packet)
Definition: CharacterPackets.h:214
Definition: CharacterPackets.h:211
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:380
Definition: Opcodes.h:163
BarberShopResultServer()
Definition: CharacterPackets.h:609
Definition: Packet.h:59
PlayedTime()
Definition: CharacterPackets.h:553
SetFactionAtWar(WorldPacket &&packet)
Definition: CharacterPackets.h:644
Definition: Opcodes.h:889
uint8 SkinID
Definition: CharacterPackets.h:74
bool ReferAFriend
Definition: CharacterPackets.h:628
GenerateRandomCharacterName(WorldPacket &&packet)
Definition: CharacterPackets.h:328
Definition: CharacterPackets.h:412
Definition: Opcodes.h:1366
SetPlayerDeclinedNamesResult()
Definition: CharacterPackets.h:735
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:466
LoginFailureReason
Definition: CharacterPackets.h:435
void Read() override
Definition: CharacterPackets.cpp:416
Definition: CharacterPackets.h:301
ObjectGuid CharGUID
Definition: CharacterPackets.h:718
LoadingScreenNotify(WorldPacket &&packet)
Definition: CharacterPackets.h:509
SetPlayerDeclinedNames(WorldPacket &&packet)
Definition: CharacterPackets.h:724
uint8 SkinID
Definition: CharacterPackets.h:703
LoginVerifyWorld()
Definition: CharacterPackets.h:426
float GroupBonus
Definition: CharacterPackets.h:627
Definition: CharacterPackets.h:29
ObjectGuid GuildGuid
Definition: CharacterPackets.h:130
time_t RaidOrigin
Definition: CharacterPackets.h:526
void Read() override
Definition: CharacterPackets.cpp:436
uint32 Index
Definition: CharacterPackets.h:638
OpcodeServer
Definition: Opcodes.h:725
uint8 Result
Definition: CharacterPackets.h:320
int32 Amount
Definition: CharacterPackets.h:626
Definition: Packet.h:46
EnumCharactersResult()
Definition: CharacterPackets.h:167
InitialSetup()
Definition: CharacterPackets.h:520
Optional< uint8 > HairStyleID
Definition: CharacterPackets.h:88
Optional< uint8 > HairColorID
Definition: CharacterPackets.h:79
Definition: Opcodes.h:617
ObjectGuid Victim
Definition: CharacterPackets.h:623
void Read() override
Definition: CharacterPackets.cpp:441
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:527
SetFactionInactive(WorldPacket &&packet)
Definition: CharacterPackets.h:664
std::string Name
Definition: CharacterPackets.h:86
uint8 Result
Definition: CharacterPackets.h:717
void Read() override
Definition: CharacterPackets.cpp:451
bool Showing
Definition: CharacterPackets.h:514
uint8 HairColorID
Definition: CharacterPackets.h:704
Definition: CharacterPackets.h:661
Definition: Opcodes.h:1197
int32_t int32
Definition: Define.h:146
std::shared_ptr< CharRaceOrFactionChangeInfo > RaceOrFactionChangeInfo
Definition: CharacterPackets.h:298
OpcodeClient GetOpcode() const
Definition: Packet.h:72
ObjectGuid CharGUID
Definition: CharacterPackets.h:700
uint32_t uint32
Definition: Define.h:150
UndeleteCooldownStatusResponse()
Definition: CharacterPackets.h:403
void Read() override
Definition: CharacterPackets.cpp:342
VisualItemInfo VisualItems[INVENTORY_SLOT_BAG_END]
Definition: CharacterPackets.h:155
uint8 NewPosition
Definition: CharacterPackets.h:353
ObjectGuid Guid
Definition: CharacterPackets.h:115
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:543
Definition: CharacterPackets.h:451
Definition: Opcodes.h:1591
struct WorldPackets::Character::EnumCharactersResult::CharacterInfo::PetInfo Pet
uint8 FactionIndex
Definition: CharacterPackets.h:658
bool FactionChange
Definition: CharacterPackets.h:85
uint8 FacialHairStyle
Definition: CharacterPackets.h:50
ObjectGuid CharGUID
Definition: CharacterPackets.h:69
int32 LevelTime
Definition: CharacterPackets.h:558
boost::optional< T > Optional
Optional helper class to wrap optional values within.
Definition: Common.h:170
Definition: Opcodes.h:627
ObjectGuid Guid
Guid of the character to delete.
Definition: CharacterPackets.h:218
SetWatchedFaction(WorldPacket &&packet)
Definition: CharacterPackets.h:675
CharFactionChangeResult()
Definition: CharacterPackets.h:316
Definition: Opcodes.h:1193
bool FirstLogin
Definition: CharacterPackets.h:134
Definition: CharacterPackets.h:101
int32 MapID
Definition: CharacterPackets.h:513
uint8 Skin
Definition: CharacterPackets.h:46
void Read() override
Definition: CharacterPackets.h:466
Definition: inftrees.h:24
Definition: BattlegroundMgr.h:57
uint8 RaceID
Definition: CharacterPackets.h:80
uint8 HairStyle
Definition: CharacterPackets.h:123
Definition: CharacterPackets.h:363
LogoutComplete()
Definition: CharacterPackets.h:483
std::string Name
Definition: CharacterPackets.h:116
std::shared_ptr< CharacterCreateInfo > CreateInfo
Definition: CharacterPackets.h:198
Definition: Opcodes.h:694
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:394
uint8 OutfitId
Definition: CharacterPackets.h:51
uint8 Mask
Definition: CharacterPackets.h:537
CreateChar()
Definition: CharacterPackets.h:204
Definition: SharedDefines.h:166
Definition: Opcodes.h:1194
ObjectGuid Player
Definition: CharacterPackets.h:728
AlterApperance(WorldPacket &&packet)
Definition: CharacterPackets.h:595
Definition: Opcodes.h:895
CharacterInfo(Field *fields)
Initialize the struct with values from QueryResult.
Definition: CharacterPackets.cpp:23
CharCustomizeFailed()
Definition: CharacterPackets.h:713
uint8 FacialHairStyleID
Definition: CharacterPackets.h:706
LogoutCancelAck()
Definition: CharacterPackets.h:501
Optional< uint8 > FaceID
Definition: CharacterPackets.h:87
bool BoostInProgress
Definition: CharacterPackets.h:145
std::string NewName
Definition: CharacterPackets.h:61
Definition: CharacterPackets.h:40
LogoutCancel(WorldPacket &&packet)
Definition: CharacterPackets.h:493
Definition: CharacterPackets.h:347
int32 Original
Definition: CharacterPackets.h:624
uint32 Flags
Character flag.
Definition: CharacterPackets.h:131
uint32 NewFacialHair
Definition: CharacterPackets.h:601
int32 LogoutResult
Definition: CharacterPackets.h:476
uint8 FaceID
Definition: CharacterPackets.h:707
Optional< CharFactionChangeDisplayInfo > Display
Definition: CharacterPackets.h:322
Definition: CharacterPackets.h:490
uint8 Sex
Definition: CharacterPackets.h:332
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:460
bool TriggerScriptEvent
Definition: CharacterPackets.h:547
uint8 unkWod61x
Definition: CharacterPackets.h:135
void Read() override
Definition: CharacterPackets.h:37
uint32 NewHairColor
Definition: CharacterPackets.h:600
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:315
Optional< uint8 > FacialHairStyleID
Definition: CharacterPackets.h:83
DeleteChar()
Definition: CharacterPackets.h:224
Definition: CharacterPackets.h:606
Optional< ObjectGuid > Guid
Definition: CharacterPackets.h:254
Definition: CharacterPackets.h:631
Definition: Opcodes.h:1500
Definition: Opcodes.h:1121
uint8 Skin
Definition: CharacterPackets.h:121
uint32 Reason
Definition: CharacterPackets.h:432
uint8 HairStyleID
Definition: CharacterPackets.h:67
uint8_t uint8
Definition: Define.h:152
Definition: Position.h:27
void Read() override
Definition: CharacterPackets.cpp:446
void Read() override
Definition: CharacterPackets.cpp:250
Definition: CharacterPackets.h:572
#define ASSERT
Definition: Errors.h:55
Definition: CharacterPackets.h:178
std::shared_ptr< CharacterUndeleteInfo > UndeleteInfo
Definition: CharacterPackets.h:374
ShowingCloak(WorldPacket &&packet)
Definition: CharacterPackets.h:565
uint32 FactionIndex
Definition: CharacterPackets.h:689
LogXPGain()
Definition: CharacterPackets.h:619
Definition: CharacterPackets.h:461
CreatureFamily
Definition: SharedDefines.h:3576
void Read() override
Definition: CharacterPackets.cpp:492
void Read() override
Definition: CharacterPackets.cpp:497
std::string Name
Definition: CharacterPackets.h:252
LoginFailureReason Code
Definition: CharacterPackets.h:458
Definition: ObjectGuid.h:189
bool ShowHelm
Definition: CharacterPackets.h:579
Optional< int32 > TemplateSet
Definition: CharacterPackets.h:52
LogoutResponse()
Definition: CharacterPackets.h:472
CharacterUndeleteInfo const * UndeleteInfo
Definition: CharacterPackets.h:388
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:480
uint8 SexID
Definition: CharacterPackets.h:81
Definition: Opcodes.h:887
uint32 LastPlayedTime
Definition: CharacterPackets.h:136
Definition: Unit.h:1101
uint8 HairStyleID
Definition: CharacterPackets.h:705
Definition: CharacterPackets.h:582
Definition: Opcodes.h:387
uint32 NewFace
Definition: CharacterPackets.h:603
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:222
uint8 SexID
Definition: CharacterPackets.h:70
bool TriggerEvent
Definition: CharacterPackets.h:559
ObjectGuid Guid
Definition: CharacterPackets.h:84
Definition: CharacterPackets.h:201
uint8 HairStyle
Definition: CharacterPackets.h:48
CharacterLoginFailed(LoginFailureReason code)
Definition: CharacterPackets.h:454
uint32 Index
Definition: CharacterPackets.h:668
Definition: Opcodes.h:618
Definition: Opcodes.h:645
UndeleteCharacterResponse()
Definition: CharacterPackets.h:380
EnumCharacters(WorldPacket &&packet)
Definition: CharacterPackets.h:32
std::shared_ptr< CharacterRenameInfo > RenameInfo
Definition: CharacterPackets.h:242
Definition: CharacterPackets.h:221
Definition: CharacterPackets.h:692
uint8 Race
Definition: CharacterPackets.h:118
UndeleteCharacter(WorldPacket &&packet)
Definition: CharacterPackets.h:366
void Read() override
Definition: CharacterPackets.cpp:421
Definition: CharacterPackets.h:550
Optional< uint8 > SkinID
Definition: CharacterPackets.h:82
int32 ResultCode
Definition: CharacterPackets.h:740
Definition: WorldPacket.h:26
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:372
uint32 FactionIndex
Definition: CharacterPackets.h:679
Definition: CharacterPackets.h:616
void Read() override
Definition: CharacterPackets.cpp:237
Definition: Opcodes.h:289
void Read() override
Definition: CharacterPackets.cpp:487
std::string Name
Definition: CharacterPackets.h:343
int32 MapID
Definition: CharacterPackets.h:430
bool Success
Definition: CharacterPackets.h:344
int32 TitleID
Definition: CharacterPackets.h:589
ObjectGuid PlayerGUID
Definition: CharacterPackets.h:352
Definition: Opcodes.h:1196
Definition: Opcodes.h:160
WorldPacket const * Write() override
Definition: CharacterPackets.cpp:286
Definition: CharacterPackets.h:562
Definition: CharacterPackets.h:377
uint8 CharCount
Server side data.
Definition: CharacterPackets.h:56
uint32 Result
Definition: CharacterPackets.h:389
ObjectGuid SwitchToCharacter
Definition: CharacterPackets.h:487
Definition: SharedDefines.h:95
GetUndeleteCharacterCooldownStatus(WorldPacket &&packet)
Definition: CharacterPackets.h:395
Definition: PacketUtilities.h:68
Definition: CharacterPackets.h:257
bool OnCooldown
Definition: CharacterPackets.h:407
Definition: CharacterPackets.h:540
std::shared_ptr< CharCustomizeInfo > CustomizeInfo
Definition: CharacterPackets.h:274
Definition: CharacterPackets.h:91