TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GuildPackets.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 GuildPackets_h__
19 #define GuildPackets_h__
20 
21 #include "Packet.h"
22 #include "ObjectGuid.h"
23 #include "Guild.h"
24 #include "ItemPackets.h"
25 
26 namespace WorldPackets
27 {
28  namespace Guild
29  {
30  class QueryGuildInfo final : public ClientPacket
31  {
32  public:
34 
35  void Read() override;
36 
39  };
40 
41  class QueryGuildInfoResponse final : public ServerPacket
42  {
43  public:
44  struct GuildInfo
45  {
47 
49 
50  std::string GuildName;
51 
53  {
54  GuildInfoRank(uint32 id, uint32 order, std::string const& name)
55  : RankID(id), RankOrder(order), RankName(name) { }
56 
59  std::string RankName;
60 
61  bool operator<(GuildInfoRank const& right) const
62  {
63  return RankID < right.RankID;
64  }
65  };
66 
67  std::set<GuildInfoRank> Ranks;
68 
74  };
75 
77 
78  WorldPacket const* Write() override;
79 
82  };
83 
84  class GuildGetRoster final : public ClientPacket
85  {
86  public:
88 
89  void Read() override { }
90  };
91 
93  {
94  int32 DbID = 0;
95  int32 Rank = 0;
96  int32 Step = 0;
97  };
98 
100  {
109  float LastSave = 0.0f;
110  std::string Name;
112  std::string Note;
113  std::string OfficerNote;
118  bool Authenticated = false;
119  bool SorEligible = false;
121  };
122 
123  class GuildRoster final : public ServerPacket
124  {
125  public:
127 
128  WorldPacket const* Write() override;
129 
130  std::vector<GuildRosterMemberData> MemberData;
131  std::string WelcomeText;
132  std::string InfoText;
136  };
137 
138  class GuildRosterUpdate final : public ServerPacket
139  {
140  public:
142 
143  WorldPacket const* Write() override;
144 
145  std::vector<GuildRosterMemberData> MemberData;
146  };
147 
148  class GuildUpdateMotdText final : public ClientPacket
149  {
150  public:
152 
153  void Read() override;
154 
155  std::string MotdText;
156  };
157 
158  class GuildCommandResult final : public ServerPacket
159  {
160  public:
162 
163  WorldPacket const* Write() override;
164 
165  std::string Name;
168  };
169 
170  class AcceptGuildInvite final : public ClientPacket
171  {
172  public:
174 
175  void Read() override { }
176  };
177 
179  {
180  public:
182 
183  void Read() override { }
184  };
185 
186  class DeclineGuildInvites final : public ClientPacket
187  {
188  public:
190 
191  void Read() override;
192 
193  bool Allow = false;
194  };
195 
196  class GuildInviteByName final : public ClientPacket
197  {
198  public:
200 
201  void Read() override;
202 
203  std::string Name;
204  };
205 
206  class GuildInvite final : public ServerPacket
207  {
208  public:
210 
211  WorldPacket const* Write() override;
212 
224  std::string InviterName;
225  std::string GuildName;
226  std::string OldGuildName;
227  };
228 
230  {
231  public:
233 
234  WorldPacket const* Write() override;
235 
238  std::string Name;
239  bool Mobile = false;
240  bool LoggedOn = false;
241  };
242 
243  class GuildEventMotd final : public ServerPacket
244  {
245  public:
247 
248  WorldPacket const* Write() override;
249 
250  std::string MotdText;
251  };
252 
254  {
255  public:
257 
258  WorldPacket const* Write() override;
259 
261  std::string Name;
263  };
264 
265  class GuildEventRankChanged final : public ServerPacket
266  {
267  public:
269 
270  WorldPacket const* Write() override;
271 
273  };
274 
276  {
277  public:
279 
280  WorldPacket const* Write() override { return &_worldPacket; }
281  };
282 
284  {
285  public:
287 
288  WorldPacket const* Write() override;
289 
291  };
292 
293  class GuildEventDisbanded final : public ServerPacket
294  {
295  public:
297 
298  WorldPacket const* Write() override { return &_worldPacket; }
299  };
300 
302  {
308  };
309 
310  class GuildEventLogQuery final : public ClientPacket
311  {
312  public:
314 
315  void Read() override { }
316  };
317 
319  {
320  public:
322 
323  WorldPacket const* Write() override;
324 
325  std::vector<GuildEventEntry> Entry;
326  };
327 
328  class GuildEventPlayerLeft final : public ServerPacket
329  {
330  public:
332 
333  WorldPacket const* Write() override;
334 
336  std::string LeaverName;
339  std::string RemoverName;
341  bool Removed = false;
342  };
343 
344  class GuildEventNewLeader final : public ServerPacket
345  {
346  public:
348 
349  WorldPacket const* Write() override;
350 
352  std::string NewLeaderName;
355  std::string OldLeaderName;
357  bool SelfPromoted = false;
358  };
359 
360  class GuildEventTabAdded final : public ServerPacket
361  {
362  public:
364 
365  WorldPacket const* Write() override { return &_worldPacket; }
366  };
367 
368  class GuildEventTabModified final : public ServerPacket
369  {
370  public:
372 
373  WorldPacket const* Write() override;
374 
375  std::string Icon;
376  std::string Name;
377  int32 Tab = 0;
378  };
379 
381  {
382  public:
384 
385  WorldPacket const* Write() override;
386 
387  int32 Tab = 0;
388  };
389 
391  {
392  public:
394 
395  WorldPacket const* Write() override { return &_worldPacket; }
396  };
397 
398  class GuildPermissionsQuery final : public ClientPacket
399  {
400  public:
402 
403  void Read() override { }
404  };
405 
407  {
408  public:
410  {
413  };
414 
416 
417  WorldPacket const* Write() override;
418 
423  std::vector<GuildRankTabPermissions> Tab;
424  };
425 
427  {
428  public:
430 
431  void Read() override;
432 
440  std::string RankName;
441  };
442 
443  class GuildAddRank final : public ClientPacket
444  {
445  public:
447 
448  void Read() override;
449 
450  std::string Name;
452  };
453 
454  class GuildAssignMemberRank final : public ClientPacket
455  {
456  public:
458 
459  void Read() override;
460 
463  };
464 
465  class GuildDeleteRank final : public ClientPacket
466  {
467  public:
469 
470  void Read() override;
471 
473  };
474 
475  class GuildGetRanks final : public ClientPacket
476  {
477  public:
479 
480  void Read() override;
481 
483  };
484 
486  {
491  std::string RankName;
494  };
495 
496  class GuildRanks final : public ServerPacket
497  {
498  public:
500 
501  WorldPacket const* Write() override;
502 
503  std::vector<GuildRankData> Ranks;
504  };
505 
506  class GuildSendRankChange final : public ServerPacket
507  {
508  public:
510 
511  WorldPacket const* Write() override;
512 
515  bool Promote = false;
517  };
518 
519  class GuildShiftRank final : public ClientPacket
520  {
521  public:
523 
524  void Read() override;
525 
526  bool ShiftUp = false;
528  };
529 
530  class GuildUpdateInfoText final : public ClientPacket
531  {
532  public:
534 
535  void Read() override;
536 
537  std::string InfoText;
538  };
539 
540  class GuildSetMemberNote final : public ClientPacket
541  {
542  public:
544 
545  void Read() override;
546 
548  bool IsPublic = false;
549  std::string Note;
550  };
551 
552  class GuildMemberUpdateNote final : public ServerPacket
553  {
554  public:
556 
557  WorldPacket const* Write() override;
558 
560  bool IsPublic = false;
561  std::string Note;
562  };
563 
564  class GuildMemberDailyReset final : public ServerPacket
565  {
566  public:
568 
569  WorldPacket const* Write() override { return &_worldPacket; }
570  };
571 
572  class GuildDelete final : public ClientPacket
573  {
574  public:
575  GuildDelete(WorldPacket&& packet) : ClientPacket(CMSG_GUILD_DELETE, std::move(packet)) { }
576 
577  void Read() override { }
578  };
579 
580  class GuildDemoteMember final : public ClientPacket
581  {
582  public:
584 
585  void Read() override;
586 
588  };
589 
590  class GuildPromoteMember final : public ClientPacket
591  {
592  public:
594 
595  void Read() override;
596 
598  };
599 
601  {
602  public:
604 
605  void Read() override;
606 
608  };
609 
610  class GuildLeave final : public ClientPacket
611  {
612  public:
613  GuildLeave(WorldPacket&& packet) : ClientPacket(CMSG_GUILD_LEAVE, std::move(packet)) { }
614 
615  void Read() override { }
616  };
617 
619  {
620  public:
622 
623  void Read() override;
624 
625  std::string NewName;
626  };
627 
628  class GuildFlaggedForRename final : public ServerPacket
629  {
630  public:
632 
633  WorldPacket const* Write() override;
634 
635  bool FlagSet = false;
636  };
637 
639  {
640  public:
642 
643  void Read() override;
644 
646  };
647 
648  class GuildPartyState final : public ServerPacket
649  {
650  public:
652 
653  WorldPacket const* Write() override;
654 
655  float GuildXPEarnedMult = 0.0f;
658  bool InGuildParty = false;
659  };
660 
662  {
663  public:
665 
666  void Read() override;
667 
669  };
670 
672  {
675  std::vector<uint32> AchievementsRequired;
680  };
681 
682  class GuildRewardList final : public ServerPacket
683  {
684  public:
686 
687  WorldPacket const* Write() override;
688 
689  std::vector<GuildRewardItem> RewardItems;
691  };
692 
693  class GuildBankActivate final : public ClientPacket
694  {
695  public:
697 
698  void Read() override;
699 
701  bool FullUpdate = false;
702  };
703 
704  class GuildBankBuyTab final : public ClientPacket
705  {
706  public:
708 
709  void Read() override;
710 
713  };
714 
715  class GuildBankUpdateTab final : public ClientPacket
716  {
717  public:
719 
720  void Read() override;
721 
724  std::string Name;
725  std::string Icon;
726  };
727 
728  class GuildBankDepositMoney final : public ClientPacket
729  {
730  public:
732 
733  void Read() override;
734 
737  };
738 
739  class GuildBankQueryTab final : public ClientPacket
740  {
741  public:
743 
744  void Read() override;
745 
747  uint8 Tab = 0;
748  bool FullUpdate = false;
749  };
750 
751 
753  {
754  public:
756 
757  void Read() override { }
758  };
759 
761  {
762  public:
764 
765  WorldPacket const* Write() override;
766 
768  };
769 
771  {
772  public:
774 
775  void Read() override;
776 
779  };
780 
782  {
784  {
787  };
788 
790  int32 Slot = 0;
796  bool Locked = false;
797  std::vector<GuildBankSocketEnchant> SocketEnchant;
798  };
799 
801  {
803  std::string Name;
804  std::string Icon;
805  };
806 
807  class GuildBankQueryResults final : public ServerPacket
808  {
809  public:
811 
812  WorldPacket const* Write() override;
813 
814  std::vector<GuildBankItemInfo> ItemInfo;
815  std::vector<GuildBankTabInfo> TabInfo;
817  int32 Tab = 0;
819  bool FullUpdate = false;
820  };
821 
822  class GuildBankSwapItems final : public ClientPacket
823  {
824  public:
826 
827  void Read() override;
828 
841  bool AutoStore = false;
842  bool BankOnly = false;
843  };
844 
845  class GuildBankLogQuery final : public ClientPacket
846  {
847  public:
849 
850  void Read() override;
851 
852  int32 Tab = 0;
853  };
854 
856  {
864  };
865 
867  {
868  public:
870 
871  WorldPacket const* Write() override;
872 
873  int32 Tab = 0;
874  std::vector<GuildBankLogEntry> Entry;
876  };
877 
878  class GuildBankTextQuery final : public ClientPacket
879  {
880  public:
882 
883  void Read() override;
884 
885  int32 Tab = 0;
886  };
887 
889  {
890  public:
892 
893  WorldPacket const* Write() override;
894 
895  int32 Tab = 0;
896  std::string Text;
897  };
898 
899  class GuildBankSetTabText final : public ClientPacket
900  {
901  public:
903 
904  void Read() override;
905 
906  int32 Tab = 0;
907  std::string TabText;
908  };
909 
910  class GuildQueryNews final : public ClientPacket
911  {
912  public:
914 
915  void Read() override;
916 
918  };
919 
921  {
922  int32 Id = 0;
924  int32 Type = 0;
930  };
931 
932  class GuildNews final : public ServerPacket
933  {
934  public:
936 
937  WorldPacket const* Write() override;
938 
939  std::vector<GuildNewsEvent> NewsEvents;
940  };
941 
942  class GuildNewsUpdateSticky final : public ClientPacket
943  {
944  public:
946 
947  void Read() override;
948 
951  bool Sticky = false;
952  };
953 
954  class GuildSetGuildMaster final : public ClientPacket
955  {
956  public:
958 
959  void Read() override;
960 
961  std::string NewMasterName;
962  };
963 
965  {
966  public:
968 
969  void Read() override { }
970  };
971 
972  class GuildChallengeUpdate final : public ServerPacket
973  {
974  public:
976 
977  WorldPacket const* Write() override;
978 
983  };
984 
985  class SaveGuildEmblem final : public ClientPacket
986  {
987  public:
989 
990  void Read() override;
991 
997  int32 Bg = 0;
998  };
999 
1001  {
1002  public:
1004 
1005  WorldPacket const* Write() override;
1006 
1008  };
1009 
1011  {
1012  public:
1014 
1015  void Read() override;
1016 
1017  std::set<uint32> AchievementIDs;
1018  };
1019  }
1020 }
1021 
1027 
1028 #endif // GuildPackets_h__
void Read() override
Definition: GuildPackets.cpp:482
std::string Note
Definition: GuildPackets.h:561
Definition: Opcodes.h:590
ObjectGuid OldGuildGUID
Definition: GuildPackets.h:214
GuildInviteByName(WorldPacket &&packet)
Definition: GuildPackets.h:199
uint32 RemoverVirtualRealmAddress
Definition: GuildPackets.h:340
Definition: Opcodes.h:1074
uint32 VirtualRealmAddress
Definition: GuildPackets.h:262
Definition: GuildPackets.h:932
Definition: Opcodes.h:346
GuildInfoRank(uint32 id, uint32 order, std::string const &name)
Definition: GuildPackets.h:54
WorldPackets::Item::ItemInstance Item
Definition: GuildPackets.h:789
Definition: Opcodes.h:313
Definition: GuildPackets.h:170
uint8 RankID
Definition: GuildPackets.h:306
uint8 BankTab
Definition: GuildPackets.h:723
int32 Charges
Definition: GuildPackets.h:793
Optional< int8 > OtherTab
Definition: GuildPackets.h:863
void Read() override
Definition: GuildPackets.cpp:467
int32 NumRequired
Definition: GuildPackets.h:657
std::string Name
Definition: GuildPackets.h:110
GuildRewardList()
Definition: GuildPackets.h:685
GuildEventNewLeader()
Definition: GuildPackets.h:347
GuildRosterUpdate()
Definition: GuildPackets.h:141
ObjectGuid GuildGUID
Definition: GuildPackets.h:213
Definition: GuildPackets.h:368
std::string Text
Definition: GuildPackets.h:896
Definition: GuildPackets.h:178
std::string Name
Definition: GuildPackets.h:376
uint8 TransactionType
Definition: GuildPackets.h:305
int8 EntryType
Definition: GuildPackets.h:859
Definition: Opcodes.h:520
std::string InfoText
Definition: GuildPackets.h:132
Definition: GuildPackets.h:800
uint32 ItemID
Definition: GuildPackets.h:673
ObjectGuid Member
Definition: GuildPackets.h:559
Definition: Opcodes.h:311
RequestGuildRewardsList(WorldPacket &&packet)
Definition: GuildPackets.h:664
void Read() override
Definition: GuildPackets.h:175
int32 WithdrawGoldLimit
Definition: GuildPackets.h:420
std::string WelcomeText
Definition: GuildPackets.h:131
uint8 BankTab1
Definition: GuildPackets.h:838
ObjectGuid Banker
Definition: GuildPackets.h:777
Definition: GuildPackets.h:610
Definition: GuildPackets.h:920
Optional< Item::ItemInstance > Item
Definition: GuildPackets.h:929
Definition: Opcodes.h:309
uint32 ItemID
Definition: GuildPackets.h:832
void Read() override
Definition: GuildPackets.cpp:115
WorldPacket const * Write() override
Definition: GuildPackets.h:280
Definition: ByteBuffer.h:70
int8_t int8
Definition: Define.h:148
Definition: GuildPackets.h:506
uint32 RankOrder
Definition: GuildPackets.h:488
int32 RankOrder
Definition: GuildPackets.h:434
Definition: GuildPackets.h:807
bool SorEligible
Definition: GuildPackets.h:119
void Read() override
Definition: GuildPackets.h:89
ObjectGuid GuildGUID
Definition: GuildPackets.h:950
uint32 CompletedDate
Definition: GuildPackets.h:923
Definition: Opcodes.h:1082
std::vector< uint32 > AchievementsRequired
Definition: GuildPackets.h:675
WorldPacket const * Write() override
Definition: GuildPackets.cpp:418
Definition: Opcodes.h:1087
int32 GuildFlags
Definition: GuildPackets.h:135
GuildUpdateMotdText(WorldPacket &&packet)
Definition: GuildPackets.h:151
int32 Command
Definition: GuildPackets.h:167
bool IsPublic
0 == Officer, 1 == Public
Definition: GuildPackets.h:548
Definition: Opcodes.h:344
GuildEventTabModified()
Definition: GuildPackets.h:371
uint32 OldLeaderVirtualRealmAddress
Definition: GuildPackets.h:356
int32 Tab
Definition: GuildPackets.h:387
uint32 OldFlags
Definition: GuildPackets.h:437
Definition: Opcodes.h:305
WorldPacket const * Write() override
Definition: GuildPackets.cpp:238
GuildFlaggedForRename()
Definition: GuildPackets.h:631
GuildSetMemberNote(WorldPacket &&packet)
Definition: GuildPackets.h:543
Definition: GuildPackets.h:30
void Read() override
Definition: GuildPackets.h:615
std::string GuildName
Definition: GuildPackets.h:225
Definition: Opcodes.h:307
WorldPacket const * Write() override
Definition: GuildPackets.cpp:355
int32 OnUseEnchantmentID
Definition: GuildPackets.h:794
void Read() override
Definition: GuildPackets.cpp:556
Definition: GuildPackets.h:540
GuildBankLogQueryResults()
Definition: GuildPackets.h:869
uint32 NewLeaderVirtualRealmAddress
Definition: GuildPackets.h:353
int32 Error
Definition: GuildPackets.h:1007
GuildGetRanks(WorldPacket &&packet)
Definition: GuildPackets.h:478
int64_t int64
Definition: Define.h:145
Definition: Opcodes.h:48
GuildInvite()
Definition: GuildPackets.h:209
Definition: GuildPackets.h:618
RequestGuildPartyState(WorldPacket &&packet)
Definition: GuildPackets.h:641
uint32 VirtualRealmAddress
a special identifier made from the Index, BattleGroup and Region.
Definition: GuildPackets.h:48
Definition: Opcodes.h:565
Definition: GuildPackets.h:580
Definition: GuildPackets.h:398
int32 RankOrder
Definition: GuildPackets.h:462
std::set< GuildInfoRank > Ranks
Definition: GuildPackets.h:67
Definition: Opcodes.h:324
Definition: GuildPackets.h:426
std::set< uint32 > AchievementIDs
Definition: GuildPackets.h:1017
void Read() override
Definition: GuildPackets.cpp:801
GuildQueryNews(WorldPacket &&packet)
Definition: GuildPackets.h:913
std::vector< GuildBankSocketEnchant > SocketEnchant
Definition: GuildPackets.h:797
std::string NewName
Definition: GuildPackets.h:625
void Read() override
Definition: GuildPackets.cpp:723
Definition: Opcodes.h:343
void Read() override
Definition: GuildPackets.cpp:472
ObjectGuid GuildGuid
Definition: GuildPackets.h:80
Definition: Opcodes.h:337
void Read() override
Definition: GuildPackets.cpp:392
Definition: GuildPackets.h:985
Definition: GuildPackets.h:822
int32 EColor
Definition: GuildPackets.h:996
Definition: Opcodes.h:308
Definition: Opcodes.h:1090
int32 GuildRepToCap
Definition: GuildPackets.h:108
uint8 BankSlot1
Definition: GuildPackets.h:836
Definition: GuildPackets.h:265
uint8 ContainerSlot
Definition: GuildPackets.h:839
bool AutoStore
Definition: GuildPackets.h:841
int64 RemainingWithdrawMoney
Definition: GuildPackets.h:767
void Read() override
Definition: GuildPackets.cpp:778
Definition: GuildPackets.h:196
bool FlagSet
Definition: GuildPackets.h:635
int32 RankID
Definition: GuildPackets.h:104
void Read() override
Definition: GuildPackets.cpp:303
std::string InviterName
Definition: GuildPackets.h:224
int32 MaxLevelGold[GUILD_CHALLENGES_TYPES]
Definition: GuildPackets.h:982
Definition: Opcodes.h:342
int32 Count
Definition: GuildPackets.h:791
void Read() override
Definition: GuildPackets.cpp:706
GuildMemberUpdateNote()
Definition: GuildPackets.h:555
uint32 BorderColor
Definition: GuildPackets.h:72
int32 TabFlags[GUILD_BANK_MAX_TABS]
Definition: GuildPackets.h:438
void Read() override
Definition: GuildPackets.h:969
Definition: GuildPackets.h:99
Definition: GuildPackets.h:465
GuildBankActivate(WorldPacket &&packet)
Definition: GuildPackets.h:696
Definition: Opcodes.h:310
STL namespace.
int32 DbID
Definition: GuildPackets.h:94
ObjectGuid LeaverGUID
Definition: GuildPackets.h:335
Definition: GuildPackets.h:972
Definition: GuildPackets.h:954
uint8 BankSlot
Definition: GuildPackets.h:835
Definition: GuildPackets.h:942
Definition: Opcodes.h:334
Definition: GuildPackets.h:552
std::vector< GuildRosterMemberData > MemberData
Definition: GuildPackets.h:145
void Read() override
Definition: GuildPackets.cpp:550
ObjectGuid OtherGUID
Definition: GuildPackets.h:304
float GuildXPEarnedMult
Definition: GuildPackets.h:655
Definition: GuildPackets.h:910
int32 MaxCount[GUILD_CHALLENGES_TYPES]
Definition: GuildPackets.h:980
Definition: Opcodes.h:1106
int32 Flags
Definition: GuildPackets.h:795
void Read() override
Definition: GuildPackets.cpp:477
void Read() override
Definition: GuildPackets.cpp:403
uint32 CurrentVersion
Definition: GuildPackets.h:668
uint32 WithdrawGoldLimit
Definition: GuildPackets.h:490
void Read() override
Definition: GuildPackets.h:403
std::string OldLeaderName
Definition: GuildPackets.h:355
uint32 EmblemStyle
Definition: GuildPackets.h:217
Definition: Opcodes.h:1072
SaveGuildEmblem(WorldPacket &&packet)
Definition: GuildPackets.h:988
Definition: Opcodes.h:340
Definition: Opcodes.h:1093
uint8 Status
Definition: GuildPackets.h:114
GuildNewsUpdateSticky(WorldPacket &&packet)
Definition: GuildPackets.h:945
void Read() override
Definition: GuildPackets.cpp:120
bool Allow
Definition: GuildPackets.h:193
GuildEventBankContentsChanged()
Definition: GuildPackets.h:393
WorldPacket const * Write() override
Definition: GuildPackets.h:365
std::string RankName
Definition: GuildPackets.h:491
std::string OfficerNote
Definition: GuildPackets.h:113
bool ShiftUp
Definition: GuildPackets.h:526
Definition: Opcodes.h:1092
WorldPacket const * Write() override
Definition: GuildPackets.cpp:784
std::string InfoText
Definition: GuildPackets.h:537
Definition: GuildPackets.h:693
GuildGetRoster(WorldPacket &&packet)
Definition: GuildPackets.h:87
Definition: GuildPackets.h:715
std::vector< GuildRewardItem > RewardItems
Definition: GuildPackets.h:689
Definition: Opcodes.h:323
WorldPacket _worldPacket
Definition: Packet.h:43
Definition: GuildPackets.h:530
int32 Slot
Definition: GuildPackets.h:790
Definition: Opcodes.h:1100
bool Locked
Definition: GuildPackets.h:796
uint32 BorderColor
Definition: GuildPackets.h:219
int32 Result
Definition: GuildPackets.h:166
std::string Name
Definition: GuildPackets.h:261
Definition: Opcodes.h:320
ObjectGuid GuildGUID
Definition: GuildPackets.h:645
Definition: GuildPackets.h:661
int32 GuildReputation
Definition: GuildPackets.h:107
int32 MinGuildRep
Definition: GuildPackets.h:678
WorldPacket const * Write() override
Definition: GuildPackets.cpp:500
GuildBankRemainingWithdrawMoney()
Definition: GuildPackets.h:763
Definition: Opcodes.h:329
uint32 BorderStyle
Definition: GuildPackets.h:71
Optional< int32 > ItemID
Definition: GuildPackets.h:861
Definition: Opcodes.h:566
WorldPacket const * Write() override
Definition: GuildPackets.cpp:452
GuildBankWithdrawMoney(WorldPacket &&packet)
Definition: GuildPackets.h:773
int32 Tab
Definition: GuildPackets.h:906
std::string Icon
Definition: GuildPackets.h:375
std::list< ObjectGuid > GuidList
Definition: ObjectGuid.h:333
Definition: Guild.h:44
Definition: GuildPackets.h:1000
Definition: Opcodes.h:1108
std::string Name
Definition: GuildPackets.h:803
void Read() override
Definition: GuildPackets.cpp:642
GuildCommandResult()
Definition: GuildPackets.h:161
Definition: Opcodes.h:304
Definition: GuildPackets.h:899
Definition: GuildPackets.h:454
void Read() override
Definition: GuildPackets.h:577
bool BankOnly
Definition: GuildPackets.h:842
void Read() override
Definition: GuildPackets.cpp:569
Definition: GuildPackets.h:206
int32 Step
Definition: GuildPackets.h:96
WorldPacket const * Write() override
Definition: GuildPackets.cpp:408
GuildAssignMemberRank(WorldPacket &&packet)
Definition: GuildPackets.h:457
bool LoggedOn
Definition: GuildPackets.h:240
Definition: GuildPackets.h:475
void Read() override
Definition: GuildPackets.cpp:495
DeclineGuildInvites(WorldPacket &&packet)
Definition: GuildPackets.h:189
GuildRosterProfessionData Profession[2]
Definition: GuildPackets.h:120
uint32 InviterVirtualRealmAddress
Definition: GuildPackets.h:223
uint32 RankID
Definition: GuildPackets.h:422
Definition: GuildPackets.h:138
void Read() override
Definition: GuildPackets.cpp:20
GuildPromoteMember(WorldPacket &&packet)
Definition: GuildPackets.h:593
int32 StackCount
Definition: GuildPackets.h:830
uint64 Money
Definition: GuildPackets.h:778
bool Promote
Definition: GuildPackets.h:515
Definition: GuildPackets.h:704
std::string Name
Definition: GuildPackets.h:165
GuildSendRankChange()
Definition: GuildPackets.h:509
QueryGuildInfoResponse()
Definition: GuildPackets.cpp:26
bool FullUpdate
Definition: GuildPackets.h:701
int32 Rank
Definition: GuildPackets.h:95
GuildBankTextQueryResult()
Definition: GuildPackets.h:891
WorldPacket const * Write() override
Definition: GuildPackets.cpp:102
Definition: GuildPackets.h:301
GuildBankQueryTab(WorldPacket &&packet)
Definition: GuildPackets.h:742
ObjectGuid Banker
Definition: GuildPackets.h:735
Definition: Opcodes.h:1077
int32 NumMembers
Definition: GuildPackets.h:656
Definition: Packet.h:59
int32 RankOrder
Definition: GuildPackets.h:451
GuildPartyState()
Definition: GuildPackets.h:651
uint32 Version
Definition: GuildPackets.h:690
GuildSetGuildMaster(WorldPacket &&packet)
Definition: GuildPackets.h:957
Definition: GuildPackets.h:380
Definition: Opcodes.h:332
int32 Tab
Definition: GuildPackets.h:895
uint32 RankID
Definition: GuildPackets.h:516
Definition: Opcodes.h:333
Optional< GuildInfo > Info
Definition: GuildPackets.h:81
uint32 ItemID1
Definition: GuildPackets.h:833
bool Removed
Definition: GuildPackets.h:341
Definition: Opcodes.h:315
Definition: GuildPackets.h:739
int32 EStyle
Definition: GuildPackets.h:994
Definition: Opcodes.h:319
bool FullUpdate
Definition: GuildPackets.h:748
int32 BColor
Definition: GuildPackets.h:995
std::string NewLeaderName
Definition: GuildPackets.h:352
Definition: GuildPackets.h:243
void Read() override
Definition: GuildPackets.cpp:575
GuildEventPresenceChange()
Definition: GuildPackets.h:232
GuildBankLogQuery(WorldPacket &&packet)
Definition: GuildPackets.h:848
int32 Tab
Definition: GuildPackets.h:885
uint32 LeaverVirtualRealmAddress
Definition: GuildPackets.h:337
ObjectGuid Vendor
Definition: GuildPackets.h:992
int32 Tab
Definition: GuildPackets.h:817
ObjectGuid PlayerGuid
Definition: GuildPackets.h:37
Definition: GuildPackets.h:564
uint32 BackgroundColor
Definition: GuildPackets.h:73
Definition: GuildPackets.h:855
int32 NumAccounts
Definition: GuildPackets.h:134
QueryGuildInfo(WorldPacket &&packet)
Definition: GuildPackets.h:33
int32 Bg
Definition: GuildPackets.h:997
Gender
Definition: SharedDefines.h:90
WorldPacket const * Write() override
Definition: GuildPackets.cpp:596
uint32 VirtualRealmAddress
Definition: GuildPackets.h:111
GuildEventLogQuery(WorldPacket &&packet)
Definition: GuildPackets.h:313
int64 WeeklyXP
Definition: GuildPackets.h:102
Definition: GuildPackets.h:360
WorldPacket const * Write() override
Definition: GuildPackets.cpp:86
GuildShiftRank(WorldPacket &&packet)
Definition: GuildPackets.h:522
WorldPacket const * Write() override
Definition: GuildPackets.cpp:245
GuildPermissionsQuery(WorldPacket &&packet)
Definition: GuildPackets.h:401
Definition: Packet.h:46
Definition: GuildPackets.h:781
Definition: Opcodes.h:1084
int32 BankItemCount
Definition: GuildPackets.h:831
WorldPacket const * Write() override
Definition: GuildPackets.cpp:208
GuildLeave(WorldPacket &&packet)
Definition: GuildPackets.h:613
WorldPacket const * Write() override
Definition: GuildPackets.h:298
GuildEventDisbanded()
Definition: GuildPackets.h:296
ObjectGuid Banker
Definition: GuildPackets.h:722
Definition: Opcodes.h:326
std::vector< GuildRosterMemberData > MemberData
Definition: GuildPackets.h:130
GuildEventRanksUpdated()
Definition: GuildPackets.h:278
GuildPermissionsQueryResults()
Definition: GuildPackets.h:415
void Read() override
Definition: GuildPackets.cpp:398
uint8 Level
Definition: GuildPackets.h:115
Definition: GuildPackets.h:671
Definition: Opcodes.h:331
uint32 EmblemStyle
Definition: GuildPackets.h:69
GuildBankTextQuery(WorldPacket &&packet)
Definition: GuildPackets.h:881
int32 PersonalAchievementPoints
Definition: GuildPackets.h:106
GuildChangeNameRequest(WorldPacket &&packet)
Definition: GuildPackets.h:621
std::vector< GuildRankData > Ranks
Definition: GuildPackets.h:503
float LastSave
Definition: GuildPackets.h:109
Definition: GuildPackets.h:293
Definition: GuildPackets.h:158
std::string MotdText
Definition: GuildPackets.h:250
uint32 OldGuildVirtualRealmAddress
Definition: GuildPackets.h:222
int32_t int32
Definition: Define.h:146
WorldPacket const * Write() override
Definition: GuildPackets.cpp:263
ObjectGuid Guid
Definition: GuildPackets.h:101
int32 EnchantmentID
Definition: GuildPackets.h:792
Definition: Opcodes.h:1081
bool InGuildParty
Definition: GuildPackets.h:658
WorldPacket const * Write() override
Definition: GuildPackets.cpp:126
uint32_t uint32
Definition: Define.h:150
std::string Name
Definition: GuildPackets.h:724
void Read() override
Definition: GuildPackets.h:757
uint32 GuildVirtualRealmAddress
Definition: GuildPackets.h:221
uint64_t uint64
Definition: Define.h:149
ObjectGuid GuildGUID
Definition: GuildPackets.h:917
GuildEventPlayerJoined()
Definition: GuildPackets.h:256
WorldPacket const * Write() override
Definition: GuildPackets.cpp:763
Definition: GuildPackets.h:572
uint8 BankTab
Definition: GuildPackets.h:837
uint32 Flags
Definition: GuildPackets.h:436
Definition: GuildPackets.h:123
Definition: Opcodes.h:1085
Definition: Opcodes.h:1104
Definition: GuildPackets.h:590
GuildDelete(WorldPacket &&packet)
Definition: GuildPackets.h:575
Definition: GuildPackets.h:648
int32 Id
Definition: GuildPackets.h:922
ObjectGuid Banker
Definition: GuildPackets.h:700
uint32 VirtualRealmAddress
Definition: GuildPackets.h:237
boost::optional< T > Optional
Optional helper class to wrap optional values within.
Definition: Common.h:170
std::string Name
Definition: GuildPackets.h:450
uint8 ContainerItemSlot
Definition: GuildPackets.h:840
uint32 TransactionDate
Definition: GuildPackets.h:307
GuildUpdateInfoText(WorldPacket &&packet)
Definition: GuildPackets.h:533
uint64 Money
Definition: GuildPackets.h:818
std::string LeaverName
Definition: GuildPackets.h:336
Definition: GuildPackets.h:682
Definition: GuildPackets.h:310
void Read() override
Definition: GuildPackets.cpp:819
Definition: GuildPackets.h:328
Definition: Opcodes.h:1078
WorldPacket const * Write() override
Definition: GuildPackets.cpp:218
uint32 EmblemColor
Definition: GuildPackets.h:70
int32 Tab
Definition: GuildPackets.h:852
int32 RankOrder
Definition: GuildPackets.h:527
WorldPacket const * Write() override
Definition: GuildPackets.cpp:341
void Read() override
Definition: GuildPackets.h:183
Optional< uint64 > Money
Definition: GuildPackets.h:860
std::string TabText
Definition: GuildPackets.h:907
int32 NumTabs
Definition: GuildPackets.h:419
Definition: Opcodes.h:1068
Definition: BattlegroundMgr.h:57
GuildBankBuyTab(WorldPacket &&packet)
Definition: GuildPackets.h:707
GuildBankDepositMoney(WorldPacket &&packet)
Definition: GuildPackets.h:731
GuildSetRankPermissions(WorldPacket &&packet)
Definition: GuildPackets.h:429
uint32 EmblemColor
Definition: GuildPackets.h:216
GuildBankSwapItems(WorldPacket &&packet)
Definition: GuildPackets.h:825
WorldPacket const * Write() override
Definition: GuildPackets.cpp:193
int32 NewsID
Definition: GuildPackets.h:949
int32 Flags
Definition: GuildPackets.h:421
void Read() override
Definition: GuildPackets.cpp:383
int32 TabIndex
Definition: GuildPackets.h:802
GuildSetAchievementTracking(WorldPacket &&packet)
Definition: GuildPackets.h:1013
Definition: GuildPackets.h:728
Definition: Opcodes.h:1111
Definition: GuildPackets.h:600
Definition: Opcodes.h:1091
int32 MinGuildLevel
Definition: GuildPackets.h:677
WorldPacket const * Write() override
Definition: GuildPackets.cpp:66
Definition: Opcodes.h:322
Definition: Opcodes.h:1107
Definition: Opcodes.h:321
std::string Name
Definition: GuildPackets.h:238
void Read() override
Definition: GuildPackets.cpp:442
int32 TabWithdrawItemLimit[GUILD_BANK_MAX_TABS]
Definition: GuildPackets.h:439
int32 RankID
Definition: GuildPackets.h:272
Definition: GuildPackets.h:253
Definition: GuildPackets.h:770
Definition: GuildPackets.h:148
Definition: GuildPackets.h:485
GuildEventPlayerLeft()
Definition: GuildPackets.h:331
WorldPacket const * Write() override
Definition: GuildPackets.cpp:286
std::vector< GuildBankLogEntry > Entry
Definition: GuildPackets.h:874
GuildBankSetTabText(WorldPacket &&packet)
Definition: GuildPackets.h:902
GuildBankQueryResults()
Definition: GuildPackets.h:810
AcceptGuildInvite(WorldPacket &&packet)
Definition: GuildPackets.h:173
uint8 ClassID
Definition: GuildPackets.h:116
GuildEventMotd()
Definition: GuildPackets.h:246
Definition: Opcodes.h:1080
uint32 Background
Definition: GuildPackets.h:220
std::vector< GuildBankItemInfo > ItemInfo
Definition: GuildPackets.h:814
WorldPacket const * Write() override
Definition: GuildPackets.cpp:231
std::string OldGuildName
Definition: GuildPackets.h:226
GuildMemberDailyReset()
Definition: GuildPackets.h:567
ObjectGuid GuildGUID
Definition: GuildPackets.h:482
Definition: GuildPackets.h:496
Definition: Opcodes.h:1067
ObjectGuid GuildGuid
Definition: GuildPackets.h:38
WorldPacket const * Write() override
Definition: GuildPackets.h:569
ObjectGuid Removee
Definition: GuildPackets.h:607
GuidList MemberList
Definition: GuildPackets.h:928
Definition: Opcodes.h:317
ObjectGuid Other
Definition: GuildPackets.h:513
GuildEventRankChanged()
Definition: GuildPackets.h:268
ObjectGuid NoteeGUID
Definition: GuildPackets.h:547
Definition: GuildPackets.h:186
uint8 ToSlot
Definition: GuildPackets.h:834
Definition: GuildPackets.h:628
ObjectGuid PlayerGUID
Definition: GuildPackets.h:857
int32 WithdrawGoldLimit
Definition: GuildPackets.h:435
uint32 TimeOffset
Definition: GuildPackets.h:858
void Read() override
Definition: GuildPackets.h:315
Definition: GuildPackets.h:41
#define GUILD_CHALLENGES_TYPES
Definition: Guild.h:257
Definition: GuildPackets.h:888
uint8 Tab
Definition: GuildPackets.h:747
bool Mobile
Definition: GuildPackets.h:239
int32 CurrentCount[GUILD_CHALLENGES_TYPES]
Definition: GuildPackets.h:979
uint64 Cost
Definition: GuildPackets.h:679
int32 Tab
Definition: GuildPackets.h:873
std::string GuildName
Definition: GuildPackets.h:50
std::vector< GuildRankTabPermissions > Tab
Definition: GuildPackets.h:423
uint32 RaceMask
Definition: GuildPackets.h:676
GuildRanks()
Definition: GuildPackets.h:499
Definition: Opcodes.h:327
std::vector< GuildEventEntry > Entry
Definition: GuildPackets.h:325
void Read() override
Definition: GuildPackets.cpp:662
int32 Flags
Definition: GuildPackets.h:925
ObjectGuid OldLeaderGUID
Definition: GuildPackets.h:354
uint32 Unk4
Definition: GuildPackets.h:674
Definition: Opcodes.h:1079
ObjectGuid Banker
Definition: GuildPackets.h:829
uint8_t uint8
Definition: Define.h:152
uint64 Money
Definition: GuildPackets.h:290
uint8 BankTab
Definition: GuildPackets.h:712
Definition: GuildPackets.h:84
Definition: Opcodes.h:234
int32 BStyle
Definition: GuildPackets.h:993
bool operator<(GuildInfoRank const &right) const
Definition: GuildPackets.h:61
WorldPacket const * Write() override
Definition: GuildPackets.cpp:583
ByteBuffer & operator<<(ByteBuffer &data, WorldPackets::Guild::GuildRosterProfessionData const &rosterProfessionData)
Definition: GuildPackets.cpp:152
WorldPacket const * Write() override
Definition: GuildPackets.cpp:533
ObjectGuid Member
Definition: GuildPackets.h:461
std::vector< GuildBankTabInfo > TabInfo
Definition: GuildPackets.h:815
Definition: Opcodes.h:1112
uint32 RankID
Definition: GuildPackets.h:487
std::string RemoverName
Definition: GuildPackets.h:339
Definition: GuildPackets.h:229
GuildNews()
Definition: GuildPackets.h:935
int32 Level
Definition: GuildPackets.h:215
WorldPacket const * Write() override
Definition: GuildPackets.cpp:667
Definition: ItemPackets.h:40
ObjectGuid MemberGuid
Definition: GuildPackets.h:927
int32 RankOrder
Definition: GuildPackets.h:472
WorldPacket const * Write() override
Definition: GuildPackets.h:395
GuildEventTabAdded()
Definition: GuildPackets.h:363
uint32 TabWithdrawItemLimit[GUILD_BANK_MAX_TABS]
Definition: GuildPackets.h:493
Definition: ObjectGuid.h:189
GuildBankRemainingWithdrawMoneyQuery(WorldPacket &&packet)
Definition: GuildPackets.h:755
Definition: GuildPackets.h:344
std::string Note
Definition: GuildPackets.h:112
GuildRoster()
Definition: GuildPackets.h:126
Definition: GuildPackets.h:866
int32 Tab
Definition: GuildPackets.h:377
ObjectGuid Banker
Definition: GuildPackets.h:746
Optional< uint64 > WeeklyBonusMoney
Definition: GuildPackets.h:875
std::string Note
Definition: GuildPackets.h:549
ObjectGuid NewLeaderGUID
Definition: GuildPackets.h:351
std::vector< GuildNewsEvent > NewsEvents
Definition: GuildPackets.h:939
void Read() override
Definition: GuildPackets.cpp:96
Definition: GuildPackets.h:638
GuildDeleteRank(WorldPacket &&packet)
Definition: GuildPackets.h:468
std::string Icon
Definition: GuildPackets.h:725
WorldPacket const * Write() override
Definition: GuildPackets.cpp:323
Definition: Opcodes.h:1114
Definition: Opcodes.h:1070
Definition: Opcodes.h:347
bool SelfPromoted
Definition: GuildPackets.h:357
void Read() override
Definition: GuildPackets.cpp:733
uint32 CreateDate
Definition: GuildPackets.h:133
Definition: Opcodes.h:318
GuildDemoteMember(WorldPacket &&packet)
Definition: GuildPackets.h:583
GuildAddRank(WorldPacket &&packet)
Definition: GuildPackets.h:446
Definition: GuildPackets.h:275
Definition: Opcodes.h:328
void Read() override
Definition: GuildPackets.cpp:430
uint32 BorderStyle
Definition: GuildPackets.h:218
Definition: Opcodes.h:1113
Type
Type of JSON value.
Definition: rapidjson.h:642
Definition: Opcodes.h:1088
int32 AreaID
Definition: GuildPackets.h:105
std::string Icon
Definition: GuildPackets.h:804
ObjectGuid Guid
Definition: GuildPackets.h:260
Definition: Opcodes.h:1098
Definition: Guild.h:320
int32 Gold[GUILD_CHALLENGES_TYPES]
Definition: GuildPackets.h:981
bool Sticky
Definition: GuildPackets.h:951
ObjectGuid RemoverGUID
Definition: GuildPackets.h:338
GuildDeclineInvitation(WorldPacket &&packet)
Definition: GuildPackets.h:181
void Read() override
Definition: GuildPackets.cpp:770
GuildChallengeUpdate()
Definition: GuildPackets.h:975
Optional< int32 > Count
Definition: GuildPackets.h:862
Definition: GuildPackets.h:845
std::string NewMasterName
Definition: GuildPackets.h:961
GuildEventLogQueryResults()
Definition: GuildPackets.h:321
std::string RankName
Definition: GuildPackets.h:440
WorldPacket const * Write() override
Definition: GuildPackets.cpp:29
Definition: Opcodes.h:1086
GuildChallengeUpdateRequest(WorldPacket &&packet)
Definition: GuildPackets.h:967
GuildEventTabTextChanged()
Definition: GuildPackets.h:383
GuildBankUpdateTab(WorldPacket &&packet)
Definition: GuildPackets.h:718
PlayerSaveGuildEmblem()
Definition: GuildPackets.h:1003
ObjectGuid PlayerGUID
Definition: GuildPackets.h:303
int32 RankID
Definition: GuildPackets.h:433
Definition: WorldPacket.h:26
ObjectGuid Promotee
Definition: GuildPackets.h:597
Definition: GuildPackets.h:519
void Read() override
Definition: GuildPackets.cpp:544
std::string Name
Definition: GuildPackets.h:203
Definition: Opcodes.h:1083
GuildOfficerRemoveMember(WorldPacket &&packet)
Definition: GuildPackets.h:603
Definition: GuildPackets.h:443
Data
Definition: molten_core.h:69
ObjectGuid Guid
Definition: GuildPackets.h:236
void Read() override
Definition: GuildPackets.cpp:436
bool IsPublic
0 == Officer, 1 == Public
Definition: GuildPackets.h:560
WorldPacket const * Write() override
Definition: GuildPackets.cpp:488
int64 TotalXP
Definition: GuildPackets.h:103
uint32 TabFlags[GUILD_BANK_MAX_TABS]
Definition: GuildPackets.h:492
uint64 Money
Definition: GuildPackets.h:736
ObjectGuid Demotee
Definition: GuildPackets.h:587
ObjectGuid GuildGUID
Definition: GuildPackets.h:46
GuildEventBankMoneyChanged()
Definition: GuildPackets.h:286
void Read() override
Definition: GuildPackets.cpp:590
Definition: Opcodes.h:345
bool FullUpdate
Definition: GuildPackets.h:819
Definition: GuildPackets.h:878
Definition: Opcodes.h:316
Definition: Opcodes.h:1368
uint32 Flags
Definition: GuildPackets.h:489
bool Authenticated
Definition: GuildPackets.h:118
ObjectGuid Officer
Definition: GuildPackets.h:514
int32 WithdrawalsRemaining
Definition: GuildPackets.h:816
std::string MotdText
Definition: GuildPackets.h:155
WorldPacket const * Write() override
Definition: GuildPackets.cpp:811
Definition: Opcodes.h:314
WorldPacket const * Write() override
Definition: GuildPackets.cpp:711
void Read() override
Definition: GuildPackets.cpp:528
ObjectGuid Banker
Definition: GuildPackets.h:711