![]() |
TrinityCore
|
#include <ChatPackets.h>
Inheritance diagram for WorldPackets::Chat::Chat:Public Attributes | |
| uint8 | SlashCmd = 0 |
| uint32 | _Language = LANG_UNIVERSAL |
| ObjectGuid | SenderGUID |
| ObjectGuid | TargetGUID |
| std::string | SenderName |
| std::string | TargetName |
| std::string | _Channel |
| Channel Name. | |
| std::string | ChatText |
| uint32 | AchievementID = 0 |
| uint8 | ChatTag = 0 |
| std::size_t | TargetGUIDPos = 0 |
Additional Inherited Members | |
Protected Attributes inherited from WorldPackets::Packet | |
| WorldPacket | _worldPacket |
Definition at line 47 of file ChatPackets.h.
|
inlineexplicit |
Definition at line 50 of file ChatPackets.h.
Definition at line 56 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 63 of file ChatPackets.cpp.
References CHAT_TAG_NONE, WorldPackets::Array< T, N >::empty(), and SMSG_MESSAGECHAT.
Referenced by Guild::BroadcastToGuild(), Trinity::WorldWorldTextBuilder::do_helper(), WorldSession::HandleChatIgnoredOpcode(), WorldSession::HandleChatMessage(), debug_commandscript::HandleDebugSendChatMsgCommand(), Trinity::CustomChatTextBuilder::operator()(), Trinity::TrinityStringChatBuilder::operator()(), Trinity::BroadcastTextBuilder::operator()(), CreatureTextBuilder::operator()(), PlayerTextBuilder::operator()(), Channel::Say(), Player::Say(), AddonChannelCommandHandler::Send(), ChatHandler::SendGlobalGMSysMessage(), ChatHandler::SendGlobalSysMessage(), World::SendGlobalText(), ChatHandler::SendSysMessage(), Map::SendZoneText(), Player::TextEmote(), Player::Whisper(), Unit::Whisper(), Unit::Whisper(), Player::Whisper(), Player::WhisperAddon(), and Player::Yell().
| void WorldPackets::Chat::Chat::SetReceiver | ( | WorldObject const * | receiver, |
| LocaleConstant | locale | ||
| ) |
Definition at line 110 of file ChatPackets.cpp.
References Object::GetGUID(), and WorldObject::GetNameForLocaleIdx().
| void WorldPackets::Chat::Chat::SetSender | ( | WorldObject const * | sender, |
| LocaleConstant | locale | ||
| ) |
Definition at line 97 of file ChatPackets.cpp.
References Object::GetGUID(), WorldObject::GetNameForLocaleIdx(), rbac::RBAC_PERM_COMMAND_GM_CHAT, SMSG_GM_MESSAGECHAT, and Object::ToPlayer().
|
overridevirtual |
Implements WorldPackets::Packet.
Definition at line 116 of file ChatPackets.cpp.
References ASSERT, CHAT_MSG_ACHIEVEMENT, CHAT_MSG_BATTLENET, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, CHAT_MSG_BG_SYSTEM_NEUTRAL, CHAT_MSG_CHANNEL, CHAT_MSG_GUILD_ACHIEVEMENT, CHAT_MSG_MONSTER_EMOTE, CHAT_MSG_MONSTER_PARTY, CHAT_MSG_MONSTER_SAY, CHAT_MSG_MONSTER_WHISPER, CHAT_MSG_MONSTER_YELL, CHAT_MSG_RAID_BOSS_EMOTE, CHAT_MSG_RAID_BOSS_WHISPER, CHAT_MSG_WHISPER_FOREIGN, and SMSG_GM_MESSAGECHAT.
Referenced by Guild::BroadcastToGuild(), Trinity::WorldWorldTextBuilder::do_helper(), WorldSession::HandleChatIgnoredOpcode(), WorldSession::HandleChatMessage(), debug_commandscript::HandleDebugSendChatMsgCommand(), Trinity::CustomChatTextBuilder::operator()(), Trinity::TrinityStringChatBuilder::operator()(), Trinity::BroadcastTextBuilder::operator()(), CreatureTextBuilder::operator()(), PlayerTextBuilder::operator()(), Channel::Say(), Player::Say(), AddonChannelCommandHandler::Send(), ChatHandler::SendGlobalGMSysMessage(), ChatHandler::SendGlobalSysMessage(), World::SendGlobalText(), ChatHandler::SendSysMessage(), Map::SendZoneText(), Player::TextEmote(), Player::Whisper(), Unit::Whisper(), Unit::Whisper(), Player::Whisper(), Player::WhisperAddon(), and Player::Yell().
| std::string WorldPackets::Chat::Chat::_Channel |
Channel Name.
Definition at line 66 of file ChatPackets.h.
| uint32 WorldPackets::Chat::Chat::_Language = LANG_UNIVERSAL |
Definition at line 61 of file ChatPackets.h.
| uint32 WorldPackets::Chat::Chat::AchievementID = 0 |
Definition at line 68 of file ChatPackets.h.
| uint8 WorldPackets::Chat::Chat::ChatTag = 0 |
Definition at line 69 of file ChatPackets.h.
| std::string WorldPackets::Chat::Chat::ChatText |
Definition at line 67 of file ChatPackets.h.
Referenced by Trinity::TrinityStringChatBuilder::operator()().
| ObjectGuid WorldPackets::Chat::Chat::SenderGUID |
Definition at line 62 of file ChatPackets.h.
Referenced by Channel::Say().
| std::string WorldPackets::Chat::Chat::SenderName |
Definition at line 64 of file ChatPackets.h.
| uint8 WorldPackets::Chat::Chat::SlashCmd = 0 |
Definition at line 60 of file ChatPackets.h.
| ObjectGuid WorldPackets::Chat::Chat::TargetGUID |
Definition at line 63 of file ChatPackets.h.
Referenced by Channel::Say().
| std::size_t WorldPackets::Chat::Chat::TargetGUIDPos = 0 |
Definition at line 71 of file ChatPackets.h.
Referenced by Trinity::BroadcastTextBuilder::operator()(), CreatureTextBuilder::operator()(), and PlayerTextBuilder::operator()().
| std::string WorldPackets::Chat::Chat::TargetName |
Definition at line 65 of file ChatPackets.h.