TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GuildFinderPackets.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 GuildFinderPackets_h__
19 #define GuildFinderPackets_h__
20 
21 #include "Packet.h"
22 #include "ObjectGuid.h"
23 
24 namespace WorldPackets
25 {
26  namespace GuildFinder
27  {
28  class LFGuildAddRecruit final : public ClientPacket
29  {
30  public:
32 
33  void Read() override;
34 
39  std::string Comment;
40  };
41 
43  {
44  public:
46 
47  WorldPacket const* Write() override { return &_worldPacket; }
48  };
49 
51  {
52  public:
54 
55  WorldPacket const* Write() override { return &_worldPacket; }
56  };
57 
58  class LFGuildBrowse final : public ClientPacket
59  {
60  public:
62 
63  void Read() override;
64 
69  };
70 
72  {
73  std::string GuildName;
87  std::string Comment;
88  int8 Cached = 0;
90  };
91 
92  class LFGuildBrowseResult final : public ServerPacket
93  {
94  public:
96 
97  WorldPacket const* Write() override;
98 
99  std::vector<LFGuildBrowseData> Post;
100  };
101 
102  class LFGuildDeclineRecruit final : public ClientPacket
103  {
104  public:
106 
107  void Read() override;
108 
110  };
111 
113  {
114  public:
116 
117  void Read() override { }
118  };
119 
121  {
124  std::string GuildName;
130  std::string Comment;
131  };
132 
133  class LFGuildApplications final : public ServerPacket
134  {
135  public:
137 
138  WorldPacket const* Write() override;
139 
140  std::vector<LFGuildApplicationData> Application;
142  };
143 
144  class LFGuildGetGuildPost final : public ClientPacket
145  {
146  public:
148 
149  void Read() override { }
150  };
151 
153  {
154  bool Active = false;
159  time_t SecondsRemaining = time_t(0);
160  std::string Comment;
161  };
162 
163  class LFGuildPost final : public ServerPacket
164  {
165  public:
166  LFGuildPost() : ServerPacket(SMSG_LF_GUILD_POST, 1 + 1 + 4 + 4 + 4 + 4 + 4 + 255) { }
167 
168  WorldPacket const* Write() override;
169 
171  };
172 
173  class LFGuildGetRecruits final : public ClientPacket
174  {
175  public:
177 
178  void Read() override;
179 
181  };
182 
184  {
186  std::string Name;
188  std::string Comment;
197  };
198 
199  class LFGuildRecruits final : public ServerPacket
200  {
201  public:
203 
204  WorldPacket const* Write() override;
205 
206  std::vector<LFGuildRecruitData> Recruits;
207  time_t UpdateTime = time_t(0);
208  };
209 
210  class LFGuildRemoveRecruit final : public ClientPacket
211  {
212  public:
214 
215  void Read() override;
216 
218  };
219 
220  class LFGuildSetGuildPost final : public ClientPacket
221  {
222  public:
224 
225  void Read() override;
226 
231  bool Active = false;
232  std::string Comment;
233  };
234  }
235 }
236 
237 #endif // GuildFinderPackets_h__
time_t SecondsRemaining
Definition: GuildFinderPackets.h:159
int32 Availability
Definition: GuildFinderPackets.h:36
Definition: GuildFinderPackets.h:220
WorldPacket const * Write() override
Definition: GuildFinderPackets.cpp:62
int32 Availability
Definition: GuildFinderPackets.h:127
uint32 GuildVirtualRealm
Definition: GuildFinderPackets.h:123
Definition: Opcodes.h:376
void Read() override
Definition: GuildFinderPackets.cpp:161
int32 EmblemColor
Definition: GuildFinderPackets.h:83
int32 PlayStyle
Definition: GuildFinderPackets.h:126
void Read() override
Definition: GuildFinderPackets.h:149
ObjectGuid GuildGUID
Definition: GuildFinderPackets.h:122
int8_t int8
Definition: Define.h:148
int32 PlayStyle
Definition: GuildFinderPackets.h:193
uint32 SecondsUntilExpiration
Definition: GuildFinderPackets.h:196
Definition: Opcodes.h:381
Definition: Opcodes.h:377
int32 LevelRange
Definition: GuildFinderPackets.h:158
int32 GuildAchievementPoints
Definition: GuildFinderPackets.h:77
int32 PlayStyle
Definition: GuildFinderPackets.h:68
Definition: GuildFinderPackets.h:210
uint32 RecruitVirtualRealm
Definition: GuildFinderPackets.h:187
Definition: Opcodes.h:1185
void Read() override
Definition: GuildFinderPackets.h:117
uint32 SecondsSinceCreated
Definition: GuildFinderPackets.h:128
Definition: GuildFinderPackets.h:28
std::string Comment
Definition: GuildFinderPackets.h:232
STL namespace.
ObjectGuid RecruitGUID
Definition: GuildFinderPackets.h:109
Definition: Opcodes.h:380
WorldPacket const * Write() override
Definition: GuildFinderPackets.h:47
int32 Availability
Definition: GuildFinderPackets.h:227
Definition: Opcodes.h:1181
Definition: Opcodes.h:382
int32 ClassRoles
Definition: GuildFinderPackets.h:157
Definition: GuildFinderPackets.h:58
Definition: GuildFinderPackets.h:71
Definition: Opcodes.h:1182
Definition: GuildFinderPackets.h:173
int32 PlayStyle
Definition: GuildFinderPackets.h:228
int32 LevelRange
Definition: GuildFinderPackets.h:230
void Read() override
Definition: GuildFinderPackets.cpp:71
WorldPacket _worldPacket
Definition: Packet.h:43
int32 EmblemStyle
Definition: GuildFinderPackets.h:82
uint32 SecondsSinceCreated
Definition: GuildFinderPackets.h:195
LFGuildApplications()
Definition: GuildFinderPackets.h:136
ObjectGuid GuildGUID
Definition: GuildFinderPackets.h:74
LFGuildApplicantListChanged()
Definition: GuildFinderPackets.h:53
LFGuildRemoveRecruit(WorldPacket &&packet)
Definition: GuildFinderPackets.h:213
std::string Comment
Definition: GuildFinderPackets.h:130
std::vector< LFGuildApplicationData > Application
Definition: GuildFinderPackets.h:140
int32 ClassRoles
Definition: GuildFinderPackets.h:80
int8 Cached
Definition: GuildFinderPackets.h:88
Definition: Packet.h:59
Definition: GuildFinderPackets.h:102
Definition: GuildFinderPackets.h:133
Definition: GuildFinderPackets.h:144
ObjectGuid GuildGUID
Definition: GuildFinderPackets.h:217
int32 PlayStyle
Definition: GuildFinderPackets.h:155
LFGuildRecruits()
Definition: GuildFinderPackets.h:202
int32 Availability
Definition: GuildFinderPackets.h:79
std::vector< LFGuildBrowseData > Post
Definition: GuildFinderPackets.h:99
int32 ClassRoles
Definition: GuildFinderPackets.h:192
Definition: Packet.h:46
Optional< GuildPostData > Post
Definition: GuildFinderPackets.h:170
Definition: Opcodes.h:379
int32 Availability
Definition: GuildFinderPackets.h:66
std::string GuildName
Definition: GuildFinderPackets.h:124
int32 LevelRange
Definition: GuildFinderPackets.h:81
int32_t int32
Definition: Define.h:146
std::string Comment
Definition: GuildFinderPackets.h:87
int32 ClassRoles
Definition: GuildFinderPackets.h:125
uint32_t uint32
Definition: Define.h:150
LFGuildGetRecruits(WorldPacket &&packet)
Definition: GuildFinderPackets.h:176
int32 ClassRoles
Definition: GuildFinderPackets.h:37
ObjectGuid GuildGUID
Definition: GuildFinderPackets.h:35
uint32 LastUpdate
Definition: GuildFinderPackets.h:180
Definition: GuildFinderPackets.h:199
int32 PlayStyle
Definition: GuildFinderPackets.h:78
boost::optional< T > Optional
Optional helper class to wrap optional values within.
Definition: Common.h:170
int32 NumRemaining
Definition: GuildFinderPackets.h:141
uint32 SecondsUntilExpiration
Definition: GuildFinderPackets.h:129
int32 CharacterClass
Definition: GuildFinderPackets.h:189
LFGuildGetApplications(WorldPacket &&packet)
Definition: GuildFinderPackets.h:115
int32 BorderColor
Definition: GuildFinderPackets.h:85
int32 ClassRoles
Definition: GuildFinderPackets.h:229
WorldPacket const * Write() override
Definition: GuildFinderPackets.cpp:93
std::string Comment
Definition: GuildFinderPackets.h:39
Definition: BattlegroundMgr.h:57
std::vector< LFGuildRecruitData > Recruits
Definition: GuildFinderPackets.h:206
Definition: GuildFinderPackets.h:183
LFGuildGetGuildPost(WorldPacket &&packet)
Definition: GuildFinderPackets.h:147
int32 CharacterLevel
Definition: GuildFinderPackets.h:65
WorldPacket const * Write() override
Definition: GuildFinderPackets.cpp:151
LFGuildApplicationsListChanged()
Definition: GuildFinderPackets.h:45
LFGuildDeclineRecruit(WorldPacket &&packet)
Definition: GuildFinderPackets.h:105
int32 ClassRoles
Definition: GuildFinderPackets.h:67
int32 Availability
Definition: GuildFinderPackets.h:156
std::string GuildName
Definition: GuildFinderPackets.h:73
WorldPacket const * Write() override
Definition: GuildFinderPackets.cpp:116
std::string Comment
Definition: GuildFinderPackets.h:188
LFGuildBrowse(WorldPacket &&packet)
Definition: GuildFinderPackets.h:61
int32 PlayStyle
Definition: GuildFinderPackets.h:38
void Read() override
Definition: GuildFinderPackets.cpp:30
void Read() override
Definition: GuildFinderPackets.cpp:126
Definition: GuildFinderPackets.h:112
int32 BorderStyle
Definition: GuildFinderPackets.h:84
int32 Availability
Definition: GuildFinderPackets.h:194
int32 GuildMembers
Definition: GuildFinderPackets.h:76
ObjectGuid RecruitGUID
Definition: GuildFinderPackets.h:185
int32 CharacterGender
Definition: GuildFinderPackets.h:190
WorldPacket const * Write() override
Definition: GuildFinderPackets.h:55
LFGuildPost()
Definition: GuildFinderPackets.h:166
LFGuildSetGuildPost(WorldPacket &&packet)
Definition: GuildFinderPackets.h:223
uint32 GuildVirtualRealm
Definition: GuildFinderPackets.h:75
Definition: ObjectGuid.h:189
int8 MembershipRequested
Definition: GuildFinderPackets.h:89
int32 CharacterLevel
Definition: GuildFinderPackets.h:191
Definition: GuildFinderPackets.h:120
time_t UpdateTime
Definition: GuildFinderPackets.h:207
Definition: Opcodes.h:1180
Definition: GuildFinderPackets.h:163
bool Active
Definition: GuildFinderPackets.h:154
void Read() override
Definition: GuildFinderPackets.cpp:21
Definition: Opcodes.h:1184
Definition: WorldPacket.h:26
std::string Comment
Definition: GuildFinderPackets.h:160
Definition: GuildFinderPackets.h:92
void Read() override
Definition: GuildFinderPackets.cpp:166
Definition: Opcodes.h:383
Definition: Opcodes.h:378
Definition: Opcodes.h:1179
LFGuildBrowseResult()
Definition: GuildFinderPackets.h:95
int32 Background
Definition: GuildFinderPackets.h:86
std::string Name
Definition: GuildFinderPackets.h:186
Definition: GuildFinderPackets.h:152
bool Active
Definition: GuildFinderPackets.h:231
LFGuildAddRecruit(WorldPacket &&packet)
Definition: GuildFinderPackets.h:31