![]() |
TrinityCore
|
Typedefs | |
| template<typename T > | |
| using | tag_base_t = typename tag_base< T >::type |
Functions | |
| template<typename Tuple , size_t offset> | |
| void | ConsumeFromOffset (ChatCommandResult &result, Tuple &, ChatHandler const *handler, std::string_view args) noexcept |
| TC_GAME_API void | MergeChatCommandResults (ChatHandler const *handler, ChatCommandResult &result1, ChatCommandResult &result2) noexcept |
| TC_GAME_API void | InvalidStringValueFormatError (ChatCommandResult &result, ChatHandler const *handler, std::string_view arg, std::type_info const &type) noexcept |
| TC_GAME_API bool | HandleVariantChatCommandConsumeResults (ChatCommandResult &combined, ChatCommandResult &¤t, ChatHandler const *handler) noexcept |
| TC_GAME_API void | PrefixVariantChatCommandError (ChatCommandResult &combined, ChatHandler const *handler) noexcept |
| TokenizeResult | tokenize (std::string_view args) noexcept |
| TC_GAME_API void | SendErrorMessageToHandler (ChatHandler *handler, std::string_view str) |
| TC_GAME_API char const * | GetTrinityString (ChatHandler const *handler, TrinityStrings which) |
| TC_GAME_API std::string | FormatTrinityString (std::string_view messageFormat, fmt::printf_args messageFormatArgs) |
| template<typename... Ts> | |
| std::string | FormatTrinityString (ChatHandler const *handler, TrinityStrings which, Ts &&... args) |
| TC_GAME_API ChatCommandResult | TryConsumExactSequencee (std::string_view sequence, ChatHandler const *handler, std::string_view args) |
Variables | |
| static constexpr char | COMMAND_DELIMITER = ' ' |
| using Trinity::Impl::ChatCommands::tag_base_t = typedef typename tag_base<T>::type |
Definition at line 47 of file ChatCommandHelpers.h.
|
noexcept |
Definition at line 101 of file ChatCommand.h.
| std::string Trinity::Impl::ChatCommands::FormatTrinityString | ( | ChatHandler const * | handler, |
| TrinityStrings | which, | ||
| Ts &&... | args | ||
| ) |
Definition at line 112 of file ChatCommandHelpers.h.
References FormatTrinityString(), and GetTrinityString().
| std::string Trinity::Impl::ChatCommands::FormatTrinityString | ( | std::string_view | messageFormat, |
| fmt::printf_args | messageFormatArgs | ||
| ) |
Definition at line 32 of file ChatCommandHelpers.cpp.
References ChatHandler::StringVPrintf().
Referenced by FormatTrinityString(), InvalidStringValueFormatError(), Trinity::ChatCommands::AccountIdentifier::TryConsume(), Trinity::ChatCommands::PlayerIdentifier::TryConsume(), and TryConsumExactSequencee().
| char const * Trinity::Impl::ChatCommands::GetTrinityString | ( | ChatHandler const * | handler, |
| TrinityStrings | which | ||
| ) |
Definition at line 27 of file ChatCommandHelpers.cpp.
References ChatHandler::GetTrinityString().
Referenced by FormatTrinityString(), HandleVariantChatCommandConsumeResults(), MergeChatCommandResults(), PrefixVariantChatCommandError(), Trinity::ChatCommands::WTail::TryConsume(), Trinity::ChatCommands::AccountIdentifier::TryConsume(), Trinity::ChatCommands::Hyperlink< linktag >::TryConsume(), and Trinity::Impl::ChatCommands::ArgInfo< std::wstring >::TryConsume().
|
noexcept |
Definition at line 77 of file ChatCommandArgs.cpp.
References GetTrinityString(), and LANG_CMDPARSER_OR.
Referenced by Trinity::Impl::ChatCommands::ArgInfo< Trinity::ChatCommands::Variant< Ts... > >::TryConsume().
|
noexcept |
Definition at line 28 of file ChatCommandArgs.cpp.
References FormatTrinityString(), Trinity::GetTypeName(), LANG_CMDPARSER_STRING_VALUE_INVALID, and STRING_VIEW_FMT_ARG.
Referenced by Trinity::Impl::ChatCommands::ArgInfo< T >::TryConsume().
|
noexcept |
Definition at line 489 of file ChatCommand.cpp.
References GetTrinityString(), LANG_CMDPARSER_EITHER, LANG_CMDPARSER_OR, and Trinity::StringFormat().
Referenced by Trinity::Impl::ChatCommands::MultiConsumer< Tuple, Optional< NestedNextType >, offset >::TryConsumeTo().
|
noexcept |
Definition at line 103 of file ChatCommandArgs.cpp.
References GetTrinityString(), and LANG_CMDPARSER_EITHER.
Referenced by Trinity::Impl::ChatCommands::ArgInfo< Trinity::ChatCommands::Variant< Ts... > >::TryConsume().
| void Trinity::Impl::ChatCommands::SendErrorMessageToHandler | ( | ChatHandler * | handler, |
| std::string_view | str | ||
| ) |
Definition at line 21 of file ChatCommandHelpers.cpp.
References ChatHandler::SendSysMessage(), and ChatHandler::SetSentErrorMessage().
Referenced by Trinity::Impl::ChatCommands::CommandInvokerTraits< bool(ChatHandler *, Ts...)>::Wrapper().
|
inlinenoexcept |
Definition at line 56 of file ChatCommandHelpers.h.
References COMMAND_DELIMITER, Trinity::Impl::ChatCommands::TokenizeResult::tail, and Trinity::Impl::ChatCommands::TokenizeResult::token.
Referenced by Trinity::Impl::ChatCommands::ChatCommandNode::GetAutoCompletionsFor(), Trinity::ChatCommands::QuotedString::TryConsume(), Trinity::ChatCommands::Hyperlink< linktag >::TryConsume(), Trinity::Impl::ChatCommands::ArgInfo< std::string_view >::TryConsume(), Trinity::Impl::ChatCommands::ArgInfo< T >::TryConsume(), TryConsumExactSequencee(), and Trinity::Impl::ChatCommands::ChatCommandNode::TryExecuteCommand().
| ChatCommandResult Trinity::Impl::ChatCommands::TryConsumExactSequencee | ( | std::string_view | sequence, |
| ChatHandler const * | handler, | ||
| std::string_view | args | ||
| ) |
Definition at line 32 of file ChatCommandTags.cpp.
References FormatTrinityString(), LANG_CMDPARSER_EXACT_SEQ_MISMATCH, STRING_VIEW_FMT_ARG, StringEqualI(), and tokenize().
Referenced by Trinity::ChatCommands::ExactSequence< Sequence >::TryConsume().
|
staticconstexpr |
Definition at line 38 of file ChatCommandHelpers.h.
Referenced by Trinity::Impl::ChatCommands::ChatCommandNode::GetAutoCompletionsFor(), Trinity::Impl::ChatCommands::ChatCommandNode::LoadCommandMap(), Trinity::Impl::ChatCommands::ChatCommandNode::LoadCommandsIntoMap(), ChatHandler::ParseCommands(), Trinity::Impl::ChatCommands::ChatCommandNode::ResolveNames(), Trinity::Impl::ChatCommands::ChatCommandNode::SendCommandHelpFor(), tokenize(), and Trinity::Impl::ChatCommands::ChatCommandNode::TryExecuteCommand().