![]() |
TrinityCore
|
#include <ChatCommandTags.h>
Inheritance diagram for Trinity::ChatCommands::AccountIdentifier:Public Types | |
| using | value_type = uint32 |
Public Types inherited from Trinity::Impl::ChatCommands::ContainerTag | |
| using | ChatCommandResult = Trinity::Impl::ChatCommands::ChatCommandResult |
Public Member Functions | |
| AccountIdentifier ()=default | |
| AccountIdentifier (WorldSession &session) | |
| operator uint32 () const | |
| operator std::string const & () const | |
| operator std::string_view () const | |
| uint32 | GetID () const |
| std::string const & | GetName () const |
| bool | IsConnected () const |
| WorldSession * | GetConnectedSession () |
| ChatCommandResult | TryConsume (ChatHandler const *handler, std::string_view args) |
Static Public Member Functions | |
| static Optional< AccountIdentifier > | FromTarget (ChatHandler *handler) |
Private Attributes | |
| uint32 | _id = 0 |
| std::string | _name |
| WorldSession * | _session = nullptr |
Definition at line 133 of file ChatCommandTags.h.
Definition at line 135 of file ChatCommandTags.h.
|
default |
| Trinity::ChatCommands::AccountIdentifier::AccountIdentifier | ( | WorldSession & | session | ) |
Definition at line 78 of file ChatCommandTags.cpp.
|
static |
Definition at line 116 of file ChatCommandTags.cpp.
References ChatHandler::GetPlayer(), and Player::GetSelectedPlayer().
Referenced by rbac_commandscript::HandleRBACPermDenyCommand(), rbac_commandscript::HandleRBACPermGrantCommand(), rbac_commandscript::HandleRBACPermListCommand(), and rbac_commandscript::HandleRBACPermRevokeCommand().
|
inline |
Definition at line 147 of file ChatCommandTags.h.
Referenced by rbac_commandscript::GetRBACData().
|
inline |
Definition at line 144 of file ChatCommandTags.h.
Referenced by rbac_commandscript::GetRBACData(), character_commandscript::HandleCharacterChangeAccountCommand(), character_commandscript::HandlePDumpCopyCommand(), and character_commandscript::HandlePDumpLoadCommand().
|
inline |
Definition at line 145 of file ChatCommandTags.h.
Referenced by rbac_commandscript::GetRBACData(), character_commandscript::HandleCharacterChangeAccountCommand(), character_commandscript::HandlePDumpCopyCommand(), and character_commandscript::HandlePDumpLoadCommand().
|
inline |
Definition at line 146 of file ChatCommandTags.h.
Referenced by rbac_commandscript::GetRBACData().
|
inline |
Definition at line 141 of file ChatCommandTags.h.
|
inline |
Definition at line 142 of file ChatCommandTags.h.
|
inline |
Definition at line 140 of file ChatCommandTags.h.
| ChatCommandResult Trinity::ChatCommands::AccountIdentifier::TryConsume | ( | ChatHandler const * | handler, |
| std::string_view | args | ||
| ) |
Definition at line 81 of file ChatCommandTags.cpp.
References Trinity::Impl::ChatCommands::FormatTrinityString(), AccountMgr::GetId(), AccountMgr::GetName(), Trinity::Impl::ChatCommands::GetTrinityString(), LANG_CMDPARSER_ACCOUNT_ID_NO_EXIST, LANG_CMDPARSER_ACCOUNT_NAME_NO_EXIST, LANG_CMDPARSER_INVALID_UTF8, STRING_VIEW_FMT_ARG, sWorld, and Utf8ToUpperOnlyLatin().
|
private |
Definition at line 154 of file ChatCommandTags.h.
|
private |
Definition at line 155 of file ChatCommandTags.h.
|
private |
Definition at line 156 of file ChatCommandTags.h.