TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ReferAFriendPackets.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 ReferAFriendPackets_h__
19 #define ReferAFriendPackets_h__
20 
21 #include "Packet.h"
22 #include "ObjectGuid.h"
23 
24 namespace WorldPackets
25 {
26  namespace RaF
27  {
28  class AcceptLevelGrant final : public ClientPacket
29  {
30  public:
32 
33  void Read() override;
34 
36  };
37 
38  class GrantLevel final : public ClientPacket
39  {
40  public:
41  GrantLevel(WorldPacket&& packet) : ClientPacket(CMSG_GRANT_LEVEL, std::move(packet)) { }
42 
43  void Read() override;
44 
46  };
47 
48  class ProposeLevelGrant final : public ServerPacket
49  {
50  public:
52 
53  WorldPacket const* Write() override;
54 
56  };
57 
58  class ReferAFriendFailure final : public ServerPacket
59  {
60  public:
62 
63  WorldPacket const* Write() override;
64 
65  std::string Str;
67  };
68  }
69 }
70 
71 #endif // ReferAFriendPackets_h__
GrantLevel(WorldPacket &&packet)
Definition: ReferAFriendPackets.h:41
AcceptLevelGrant(WorldPacket &&packet)
Definition: ReferAFriendPackets.h:31
ObjectGuid Granter
Definition: ReferAFriendPackets.h:35
STL namespace.
ObjectGuid Target
Definition: ReferAFriendPackets.h:45
Definition: Opcodes.h:49
int32 Reason
Definition: ReferAFriendPackets.h:66
ObjectGuid Sender
Definition: ReferAFriendPackets.h:55
std::string Str
Definition: ReferAFriendPackets.h:65
Definition: Packet.h:59
WorldPacket const * Write() override
Definition: ReferAFriendPackets.cpp:30
Definition: Packet.h:46
void Read() override
Definition: ReferAFriendPackets.cpp:25
Definition: ReferAFriendPackets.h:58
Definition: Opcodes.h:1386
Definition: Opcodes.h:302
int32_t int32
Definition: Define.h:146
void Read() override
Definition: ReferAFriendPackets.cpp:20
ProposeLevelGrant()
Definition: ReferAFriendPackets.h:51
Definition: BattlegroundMgr.h:57
Definition: ReferAFriendPackets.h:48
ReferAFriendFailure()
Definition: ReferAFriendPackets.h:61
Definition: ReferAFriendPackets.h:28
WorldPacket const * Write() override
Definition: ReferAFriendPackets.cpp:37
Definition: ObjectGuid.h:189
Definition: ReferAFriendPackets.h:38
Definition: WorldPacket.h:26
Definition: Opcodes.h:1440