TrinityCore
Loading...
Searching...
No Matches
ChannelPackets.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_CHANNEL_PACKETS_H
19#define TRINITYCORE_CHANNEL_PACKETS_H
20
21#include "Packet.h"
22#include "ObjectGuid.h"
23
24namespace WorldPackets
25{
26 namespace Channel
27 {
29 {
30 public:
32 {
34 Guid(guid), Flags(flags) { }
35
38 };
39
41
42 WorldPacket const* Write() override;
43
44 std::vector<ChannelPlayer> Members;
45 std::string _Channel;
47 bool Display = false;
48 };
49
51 {
52 public:
54
55 WorldPacket const* Write() override;
56
57 std::string Sender;
59 uint8 Type = 0;
62 std::string _Channel;
66 bool Suspended = false;
67 };
68
70 {
71 public:
73
74 void Read() override;
75
76 std::string ChannelName;
77 };
78
80 {
81 public:
83
84 void Read() override;
85
86 std::string ChannelName;
87 std::string Name;
88 };
89
91 {
92 public:
94
95 void Read() override;
96
97 std::string ChannelName;
98 std::string Password;
99 };
100
102 {
103 public:
105
106 void Read() override;
107
108 std::string Password;
109 std::string ChannelName;
110 bool CreateVoiceSession = false;
112 bool Internal = false;
113 };
114
116 {
117 public:
119
120 void Read() override;
121
123 std::string ChannelName;
124 };
125
127 {
128 public:
130
131 WorldPacket const* Write() override;
132
135 std::string ChannelName;
136 };
137 }
138}
139
140#endif // TRINITYCORE_CHANNEL_PACKETS_H
uint8_t uint8
Definition Define.h:135
int32_t int32
Definition Define.h:129
uint32_t uint32
Definition Define.h:133
uint16 flags
std::vector< ChannelPlayer > Members
WorldPacket const * Write() override
WorldPacket const * Write() override
std::string _Channel
Channel Name.
WorldPacket const * Write() override
@ CMSG_CHANNEL_PASSWORD
Definition Opcodes.h:185
@ SMSG_CHANNEL_LIST
Definition Opcodes.h:184
@ CMSG_LEAVE_CHANNEL
Definition Opcodes.h:181
@ CMSG_JOIN_CHANNEL
Definition Opcodes.h:180
@ SMSG_CHANNEL_NOTIFY
Definition Opcodes.h:182
@ SMSG_CHANNEL_MEMBER_COUNT
Definition Opcodes.h:1010
STL namespace.
ChannelPlayer(ObjectGuid const &guid, uint8 flags)