TrinityCore
Loading...
Searching...
No Matches
SocialPackets.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 TRINITYCORE_SOCIAL_PACKETS_H
19#define TRINITYCORE_SOCIAL_PACKETS_H
20
21#include "Packet.h"
22#include "ObjectGuid.h"
23#include "SharedDefines.h"
24
25struct FriendInfo;
26enum FriendsResult : uint8;
27
28namespace WorldPackets
29{
30 namespace Social
31 {
33 {
34 public:
36
37 void Read() override;
38
40 };
41
52
54 {
55 public:
57
58 WorldPacket const* Write() override;
59
60 std::vector<ContactInfo> Contacts;
62 };
63
65 {
66 public:
68
69 WorldPacket const* Write() override;
70
71 std::string Notes;
78 };
79
81 {
82 public:
84
85 void Read() override;
86
87 std::string Notes;
88 std::string Name;
89 };
90
92 {
93 public:
95
96 void Read() override;
97
99 };
100
102 {
103 public:
105
106 void Read() override;
107
109 std::string Notes;
110 };
111
113 {
114 public:
116
117 void Read() override;
118
119 std::string Name;
120 };
121
123 {
124 public:
126
127 void Read() override;
128
130 };
131 }
132}
133
134#endif // TRINITYCORE_SOCIAL_PACKETS_H
uint8_t uint8
Definition Define.h:135
uint32_t uint32
Definition Define.h:133
@ CLASS_NONE
FriendsResult
Results of friend related commands.
Definition SocialMgr.h:66
AddFriend(WorldPacket &&packet)
AddIgnore(WorldPacket &&packet)
WorldPacket const * Write() override
std::vector< ContactInfo > Contacts
DelFriend(WorldPacket &&packet)
DelIgnore(WorldPacket &&packet)
WorldPacket const * Write() override
SendContactList(WorldPacket &&packet)
@ CMSG_SET_CONTACT_NOTES
Definition Opcodes.h:136
@ CMSG_DEL_IGNORE
Definition Opcodes.h:138
@ CMSG_ADD_IGNORE
Definition Opcodes.h:137
@ CMSG_CONTACT_LIST
Definition Opcodes.h:131
@ CMSG_DEL_FRIEND
Definition Opcodes.h:135
@ CMSG_ADD_FRIEND
Definition Opcodes.h:134
@ SMSG_CONTACT_LIST
Definition Opcodes.h:132
@ SMSG_FRIEND_STATUS
Definition Opcodes.h:133
STL namespace.