![]() |
TrinityCore
|
Typedefs | |
| template<typename T > | |
| using | TupleType = typename HandlerToTuple< T >::type |
| template<typename T > | |
| using | tag_base_t = typename tag_base< T >::type |
| template<std::size_t index, typename... Ts> | |
| using | get_nth_t = typename get_nth< index, Ts... >::type |
Functions | |
| template<typename Tuple , size_t offset> | |
| ChatCommandResult | ConsumeFromOffset (Tuple &, ChatHandler const *handler, std::string_view args) |
| TokenizeResult | tokenize (std::string_view args) |
| 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) |
| template<size_t N> | |
| constexpr char | GetChar (char const (&s)[N], size_t i) |
Variables | |
| static constexpr char | COMMAND_DELIMITER = ' ' |
| using Trinity::Impl::ChatCommands::get_nth_t = typedef typename get_nth<index, Ts...>::type |
Definition at line 93 of file ChatCommandHelpers.h.
| using Trinity::Impl::ChatCommands::tag_base_t = typedef typename tag_base<T>::type |
Definition at line 48 of file ChatCommandHelpers.h.
| using Trinity::Impl::ChatCommands::TupleType = typedef typename HandlerToTuple<T>::type |
Definition at line 119 of file ChatCommand.h.
| ChatCommandResult Trinity::Impl::ChatCommands::ConsumeFromOffset | ( | Tuple & | tuple, |
| ChatHandler const * | handler, | ||
| std::string_view | args | ||
| ) |
Definition at line 107 of file ChatCommand.h.
| std::string Trinity::Impl::ChatCommands::FormatTrinityString | ( | ChatHandler const * | handler, |
| TrinityStrings | which, | ||
| Ts &&... | args | ||
| ) |
Definition at line 128 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 33 of file ChatCommandHelpers.cpp.
References ChatHandler::StringVPrintf().
Referenced by FormatTrinityString(), Trinity::ChatCommands::AccountIdentifier::TryConsume(), Trinity::ChatCommands::PlayerIdentifier::TryConsume(), Trinity::ChatCommands::ExactSequence< chars >::TryConsume(), Trinity::Impl::ChatCommands::ArgInfo< T, std::enable_if_t< std::is_integral_v< T >||std::is_floating_point_v< T > > >::TryConsume(), and Trinity::Impl::ChatCommands::ArgInfo< T, std::enable_if_t< std::is_enum_v< T > > >::TryConsume().
|
inlineconstexpr |
Definition at line 57 of file ChatCommandTags.h.
| char const * Trinity::Impl::ChatCommands::GetTrinityString | ( | ChatHandler const * | handler, |
| TrinityStrings | which | ||
| ) |
Definition at line 28 of file ChatCommandHelpers.cpp.
References ChatHandler::GetTrinityString().
Referenced by FormatTrinityString(), Trinity::Impl::ChatCommands::ArgInfo< Trinity::ChatCommands::Variant< Ts... > >::TryAtIndex(), Trinity::ChatCommands::WTail::TryConsume(), Trinity::ChatCommands::AccountIdentifier::TryConsume(), Trinity::ChatCommands::Hyperlink< linktag >::TryConsume(), Trinity::Impl::ChatCommands::ArgInfo< std::wstring, void >::TryConsume(), Trinity::Impl::ChatCommands::ArgInfo< Trinity::ChatCommands::Variant< Ts... > >::TryConsume(), and Trinity::Impl::ChatCommands::MultiConsumer< Tuple, Optional< NestedNextType >, offset >::TryConsumeTo().
| void Trinity::Impl::ChatCommands::SendErrorMessageToHandler | ( | ChatHandler * | handler, |
| std::string_view | str | ||
| ) |
Definition at line 22 of file ChatCommandHelpers.cpp.
References ChatHandler::SendSysMessage(), and ChatHandler::SetSentErrorMessage().
Referenced by Trinity::Impl::ChatCommands::CommandInvoker::CommandInvoker().
|
inline |
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::ChatCommands::ExactSequence< chars >::TryConsume(), Trinity::Impl::ChatCommands::ArgInfo< std::string_view, void >::TryConsume(), Trinity::Impl::ChatCommands::ArgInfo< T, std::enable_if_t< std::is_integral_v< T >||std::is_floating_point_v< T > > >::TryConsume(), and Trinity::Impl::ChatCommands::ChatCommandNode::TryExecuteCommand().
|
staticconstexpr |
Definition at line 39 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().