AzerothCore 3.3.5a
OpenSource WoW Emulator
|
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 , std::size_t offset> | |
ChatCommandResult | ConsumeFromOffset (Tuple &, ChatHandler const *handler, std::string_view args) |
TokenizeResult | tokenize (std::string_view args) |
AC_GAME_API void | SendErrorMessageToHandler (ChatHandler *handler, std::string_view str) |
AC_GAME_API char const * | GetAcoreString (ChatHandler const *handler, AcoreStrings which) |
template<typename... Ts> | |
std::string | FormatAcoreString (ChatHandler const *handler, AcoreStrings which, Ts &&... args) |
template<std::size_t N> | |
constexpr char | GetChar (char const (&s)[N], std::size_t i) |
Variables | |
static constexpr char | COMMAND_DELIMITER = ' ' |
using Acore::Impl::ChatCommands::get_nth_t = typedef typename get_nth<index, Ts...>::type |
using Acore::Impl::ChatCommands::tag_base_t = typedef typename tag_base<T>::type |
using Acore::Impl::ChatCommands::TupleType = typedef typename HandlerToTuple<T>::type |
ChatCommandResult Acore::Impl::ChatCommands::ConsumeFromOffset | ( | Tuple & | tuple, |
ChatHandler const * | handler, | ||
std::string_view | args | ||
) |
std::string Acore::Impl::ChatCommands::FormatAcoreString | ( | ChatHandler const * | handler, |
AcoreStrings | which, | ||
Ts &&... | args | ||
) |
References GetAcoreString(), and Acore::StringFormat().
Referenced by Acore::ChatCommands::AccountIdentifier::TryConsume(), Acore::ChatCommands::PlayerIdentifier::TryConsume(), Acore::ChatCommands::ExactSequence< chars >::TryConsume(), Acore::Impl::ChatCommands::ArgInfo< T, std::enable_if_t< std::is_integral_v< T >||std::is_floating_point_v< T > > >::TryConsume(), and Acore::Impl::ChatCommands::ArgInfo< T, std::enable_if_t< std::is_enum_v< T > > >::TryConsume().
char const * Acore::Impl::ChatCommands::GetAcoreString | ( | ChatHandler const * | handler, |
AcoreStrings | which | ||
) |
References ChatHandler::GetAcoreString().
Referenced by FormatAcoreString(), Acore::Impl::ChatCommands::ArgInfo< Acore::ChatCommands::Variant< Ts... > >::TryAtIndex(), Acore::Impl::ChatCommands::ArgInfo< Acore::ChatCommands::Variant< Ts... > >::TryConsume(), Acore::ChatCommands::WTail::TryConsume(), Acore::ChatCommands::AccountIdentifier::TryConsume(), Acore::ChatCommands::Hyperlink< linktag >::TryConsume(), Acore::Impl::ChatCommands::ArgInfo< std::wstring, void >::TryConsume(), and Acore::Impl::ChatCommands::MultiConsumer< Tuple, Optional< NestedNextType >, offset >::TryConsumeTo().
|
inlineconstexpr |
void Acore::Impl::ChatCommands::SendErrorMessageToHandler | ( | ChatHandler * | handler, |
std::string_view | str | ||
) |
References ChatHandler::SendSysMessage(), and ChatHandler::SetSentErrorMessage().
Referenced by Acore::Impl::ChatCommands::CommandInvoker::CommandInvoker().
|
inline |
References COMMAND_DELIMITER, Acore::Impl::ChatCommands::TokenizeResult::tail, and Acore::Impl::ChatCommands::TokenizeResult::token.
Referenced by Acore::Impl::ChatCommands::ChatCommandNode::GetAutoCompletionsFor(), Acore::ChatCommands::QuotedString::TryConsume(), Acore::ChatCommands::Hyperlink< linktag >::TryConsume(), Acore::ChatCommands::ExactSequence< chars >::TryConsume(), Acore::Impl::ChatCommands::ArgInfo< std::string_view, void >::TryConsume(), Acore::Impl::ChatCommands::ArgInfo< T, std::enable_if_t< std::is_integral_v< T >||std::is_floating_point_v< T > > >::TryConsume(), and Acore::Impl::ChatCommands::ChatCommandNode::TryExecuteCommand().
|
staticconstexpr |
Referenced by Acore::Impl::ChatCommands::ChatCommandNode::GetAutoCompletionsFor(), Acore::Impl::ChatCommands::ChatCommandNode::LoadCommandMap(), Acore::Impl::ChatCommands::ChatCommandNode::LoadCommandsIntoMap(), ChatHandler::ParseCommands(), Acore::Impl::ChatCommands::ChatCommandNode::ResolveNames(), Acore::Impl::ChatCommands::ChatCommandNode::SendCommandHelpFor(), tokenize(), and Acore::Impl::ChatCommands::ChatCommandNode::TryExecuteCommand().