TrinityCore
|
#include <ChatPackets.h>
Public Member Functions | |
Chat () | |
Chat (Chat const &chat) | |
void | Initialize (ChatMsg chatType, Language language, WorldObject const *sender, WorldObject const *receiver, std::string_view message, uint32 achievementId=0, std::string_view channelName="", LocaleConstant locale=DEFAULT_LOCALE, std::string_view addonPrefix="") |
void | SetSender (WorldObject const *sender, LocaleConstant locale) |
void | SetReceiver (WorldObject const *receiver, LocaleConstant locale) |
WorldPacket const * | Write () override |
Public Member Functions inherited from WorldPackets::ServerPacket | |
ServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT) | |
void | Read () override final |
void | Clear () |
WorldPacket && | Move () |
void | ShrinkToFit () |
OpcodeServer | GetOpcode () const |
Public Member Functions inherited from WorldPackets::Packet | |
Packet (WorldPacket &&worldPacket) | |
virtual | ~Packet ()=default |
Packet (Packet const &right)=delete | |
Packet & | operator= (Packet const &right)=delete |
virtual WorldPacket const * | Write ()=0 |
virtual void | Read ()=0 |
WorldPacket const * | GetRawPacket () const |
size_t | GetSize () const |
ConnectionType | GetConnection () const |
Public Attributes | |
uint8 | SlashCmd = 0 |
uint32 | _Language = LANG_UNIVERSAL |
ObjectGuid | SenderGUID |
ObjectGuid | SenderGuildGUID |
ObjectGuid | SenderAccountGUID |
ObjectGuid | TargetGUID |
uint32 | SenderVirtualAddress = 0 |
uint32 | TargetVirtualAddress = 0 |
std::string | SenderName |
std::string | TargetName |
std::string | Prefix |
Addon Prefix. More... | |
std::string | _Channel |
Channel Name. More... | |
std::string | ChatText |
uint32 | AchievementID = 0 |
uint16 | _ChatFlags = 0 |
float | DisplayTime = 0.0f |
int32 | SpellID = 0 |
Optional< uint32 > | Unused_801 |
bool | HideChatLog = false |
bool | FakeSenderName = false |
Optional< ObjectGuid > | ChannelGUID |
Additional Inherited Members | |
Protected Attributes inherited from WorldPackets::Packet | |
WorldPacket | _worldPacket |
Definition at line 149 of file ChatPackets.h.
|
inline |
Definition at line 152 of file ChatPackets.h.
WorldPackets::Chat::Chat::Chat | ( | Chat const & | chat | ) |
Definition at line 111 of file ChatPackets.cpp.
void WorldPackets::Chat::Chat::Initialize | ( | ChatMsg | chatType, |
Language | language, | ||
WorldObject const * | sender, | ||
WorldObject const * | receiver, | ||
std::string_view | message, | ||
uint32 | achievementId = 0 , |
||
std::string_view | channelName = "" , |
||
LocaleConstant | locale = DEFAULT_LOCALE , |
||
std::string_view | addonPrefix = "" |
||
) |
Definition at line 120 of file ChatPackets.cpp.
void WorldPackets::Chat::Chat::SetReceiver | ( | WorldObject const * | receiver, |
LocaleConstant | locale | ||
) |
Definition at line 167 of file ChatPackets.cpp.
void WorldPackets::Chat::Chat::SetSender | ( | WorldObject const * | sender, |
LocaleConstant | locale | ||
) |
|
overridevirtual |
Implements WorldPackets::Packet.
Definition at line 174 of file ChatPackets.cpp.
std::string WorldPackets::Chat::Chat::_Channel |
Channel Name.
Definition at line 173 of file ChatPackets.h.
uint16 WorldPackets::Chat::Chat::_ChatFlags = 0 |
Definition at line 176 of file ChatPackets.h.
uint32 WorldPackets::Chat::Chat::_Language = LANG_UNIVERSAL |
Definition at line 163 of file ChatPackets.h.
uint32 WorldPackets::Chat::Chat::AchievementID = 0 |
Definition at line 175 of file ChatPackets.h.
Optional<ObjectGuid> WorldPackets::Chat::Chat::ChannelGUID |
Definition at line 182 of file ChatPackets.h.
std::string WorldPackets::Chat::Chat::ChatText |
Definition at line 174 of file ChatPackets.h.
float WorldPackets::Chat::Chat::DisplayTime = 0.0f |
Definition at line 177 of file ChatPackets.h.
bool WorldPackets::Chat::Chat::FakeSenderName = false |
Definition at line 181 of file ChatPackets.h.
bool WorldPackets::Chat::Chat::HideChatLog = false |
Definition at line 180 of file ChatPackets.h.
std::string WorldPackets::Chat::Chat::Prefix |
Addon Prefix.
Definition at line 172 of file ChatPackets.h.
ObjectGuid WorldPackets::Chat::Chat::SenderAccountGUID |
Definition at line 166 of file ChatPackets.h.
ObjectGuid WorldPackets::Chat::Chat::SenderGUID |
Definition at line 164 of file ChatPackets.h.
ObjectGuid WorldPackets::Chat::Chat::SenderGuildGUID |
Definition at line 165 of file ChatPackets.h.
std::string WorldPackets::Chat::Chat::SenderName |
Definition at line 170 of file ChatPackets.h.
uint32 WorldPackets::Chat::Chat::SenderVirtualAddress = 0 |
Definition at line 168 of file ChatPackets.h.
uint8 WorldPackets::Chat::Chat::SlashCmd = 0 |
Definition at line 162 of file ChatPackets.h.
int32 WorldPackets::Chat::Chat::SpellID = 0 |
Definition at line 178 of file ChatPackets.h.
ObjectGuid WorldPackets::Chat::Chat::TargetGUID |
Definition at line 167 of file ChatPackets.h.
std::string WorldPackets::Chat::Chat::TargetName |
Definition at line 171 of file ChatPackets.h.
uint32 WorldPackets::Chat::Chat::TargetVirtualAddress = 0 |
Definition at line 169 of file ChatPackets.h.
Definition at line 179 of file ChatPackets.h.