TrinityCore
Loading...
Searching...
No Matches
Trinity::Impl::ChatCommands Namespace Reference

Classes

struct  ArgInfo
 
struct  ArgInfo< AchievementEntry const * >
 
struct  ArgInfo< CurrencyTypesEntry const * >
 
struct  ArgInfo< GameTele const * >
 
struct  ArgInfo< ItemTemplate const * >
 
struct  ArgInfo< Quest const * >
 
struct  ArgInfo< SpellInfo const * >
 
struct  ArgInfo< std::array< T, N > >
 
struct  ArgInfo< std::string >
 
struct  ArgInfo< std::string_view >
 
struct  ArgInfo< std::vector< T > >
 
struct  ArgInfo< std::wstring >
 
struct  ArgInfo< T >
 
struct  ArgInfo< Trinity::ChatCommands::Variant< Ts... > >
 
class  ChatCommandNode
 
struct  ChatCommandResult
 
struct  CommandInvoker
 
struct  CommandInvokerTraits
 
struct  CommandInvokerTraits< bool(ChatHandler *, Ts...)>
 
struct  CommandInvokerTraits< bool(ChatHandler const *, Ts...)>
 
struct  CommandPermissions
 
struct  ContainerTag
 
struct  EnumArgInfoBase
 
struct  FilteredCommandListIterator
 
struct  MultiConsumer
 
struct  MultiConsumer< Tuple, Optional< NestedNextType >, offset >
 
struct  string_literal
 
struct  tag_base
 
struct  tag_base< T, std::enable_if_t< std::is_base_of_v< ContainerTag, T > > >
 
struct  TokenizeResult
 

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 &&current, 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 = ' '
 

Typedef Documentation

◆ tag_base_t

template<typename T >
using Trinity::Impl::ChatCommands::tag_base_t = typedef typename tag_base<T>::type

Definition at line 47 of file ChatCommandHelpers.h.

Function Documentation

◆ ConsumeFromOffset()

template<typename Tuple , size_t offset>
void Trinity::Impl::ChatCommands::ConsumeFromOffset ( ChatCommandResult result,
Tuple &  tuple,
ChatHandler const *  handler,
std::string_view  args 
)
noexcept

Definition at line 101 of file ChatCommand.h.

◆ FormatTrinityString() [1/2]

template<typename... Ts>
std::string Trinity::Impl::ChatCommands::FormatTrinityString ( ChatHandler const *  handler,
TrinityStrings  which,
Ts &&...  args 
)

Definition at line 112 of file ChatCommandHelpers.h.

+ Here is the call graph for this function:

◆ FormatTrinityString() [2/2]

std::string Trinity::Impl::ChatCommands::FormatTrinityString ( std::string_view  messageFormat,
fmt::printf_args  messageFormatArgs 
)

Definition at line 32 of file ChatCommandHelpers.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTrinityString()

char const * Trinity::Impl::ChatCommands::GetTrinityString ( ChatHandler const *  handler,
TrinityStrings  which 
)

Definition at line 27 of file ChatCommandHelpers.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleVariantChatCommandConsumeResults()

bool Trinity::Impl::ChatCommands::HandleVariantChatCommandConsumeResults ( ChatCommandResult combined,
ChatCommandResult &&  current,
ChatHandler const *  handler 
)
noexcept

Definition at line 77 of file ChatCommandArgs.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InvalidStringValueFormatError()

void Trinity::Impl::ChatCommands::InvalidStringValueFormatError ( ChatCommandResult result,
ChatHandler const *  handler,
std::string_view  arg,
std::type_info const &  type 
)
noexcept

Definition at line 28 of file ChatCommandArgs.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MergeChatCommandResults()

void Trinity::Impl::ChatCommands::MergeChatCommandResults ( ChatHandler const *  handler,
ChatCommandResult result1,
ChatCommandResult result2 
)
noexcept

Definition at line 489 of file ChatCommand.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PrefixVariantChatCommandError()

void Trinity::Impl::ChatCommands::PrefixVariantChatCommandError ( ChatCommandResult combined,
ChatHandler const *  handler 
)
noexcept

Definition at line 103 of file ChatCommandArgs.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendErrorMessageToHandler()

void Trinity::Impl::ChatCommands::SendErrorMessageToHandler ( ChatHandler handler,
std::string_view  str 
)

Definition at line 21 of file ChatCommandHelpers.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ tokenize()

TokenizeResult Trinity::Impl::ChatCommands::tokenize ( std::string_view  args)
inlinenoexcept

Definition at line 56 of file ChatCommandHelpers.h.

+ Here is the caller graph for this function:

◆ TryConsumExactSequencee()

ChatCommandResult Trinity::Impl::ChatCommands::TryConsumExactSequencee ( std::string_view  sequence,
ChatHandler const *  handler,
std::string_view  args 
)

Definition at line 32 of file ChatCommandTags.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ COMMAND_DELIMITER

constexpr char Trinity::Impl::ChatCommands::COMMAND_DELIMITER = ' '
staticconstexpr

Definition at line 38 of file ChatCommandHelpers.h.