TrinityCore
Trinity::Impl::ChatCommands Namespace Reference

Classes

struct  are_all_assignable
 
struct  are_all_assignable< void, Ts... >
 
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 >, void >
 
struct  ArgInfo< std::string, void >
 
struct  ArgInfo< std::string_view, void >
 
struct  ArgInfo< std::vector< T >, void >
 
struct  ArgInfo< std::wstring, void >
 
struct  ArgInfo< T, std::enable_if_t< std::is_base_of_v< ContainerTag, T > > >
 
struct  ArgInfo< T, std::enable_if_t< std::is_enum_v< T > > >
 
struct  ArgInfo< T, std::enable_if_t< std::is_integral_v< T >||std::is_floating_point_v< T > > >
 
struct  ArgInfo< Trinity::ChatCommands::Variant< Ts... > >
 
class  ChatCommandNode
 
struct  ChatCommandResult
 
struct  CommandInvoker
 
struct  CommandPermissions
 
struct  ContainerTag
 
struct  FilteredCommandListIterator
 
struct  get_nth
 
struct  get_nth< 0, T1, Ts... >
 
struct  HandlerToTuple
 
struct  HandlerToTuple< bool(ChatHandler *, Ts...)>
 
struct  MultiConsumer
 
struct  MultiConsumer< Tuple, Optional< NestedNextType >, offset >
 
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 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)
 
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 = ' '
 

Typedef Documentation

◆ get_nth_t

template<std::size_t index, typename... Ts>
using Trinity::Impl::ChatCommands::get_nth_t = typedef typename get_nth<index, Ts...>::type

Definition at line 93 of file ChatCommandHelpers.h.

◆ tag_base_t

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

Definition at line 48 of file ChatCommandHelpers.h.

◆ TupleType

template<typename T >
using Trinity::Impl::ChatCommands::TupleType = typedef typename HandlerToTuple<T>::type

Definition at line 118 of file ChatCommand.h.

Function Documentation

◆ ConsumeFromOffset()

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

Definition at line 106 of file ChatCommand.h.

◆ FormatTrinityString()

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

Definition at line 127 of file ChatCommandHelpers.h.

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

◆ GetChar()

template<size_t N>
constexpr char Trinity::Impl::ChatCommands::GetChar ( char const (&)  s[N],
size_t  i 
)
inlineconstexpr

Definition at line 54 of file ChatCommandTags.h.

◆ 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:

◆ 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)
inline

Definition at line 56 of file ChatCommandHelpers.h.

+ Here is the caller graph for this function:

Variable Documentation

◆ COMMAND_DELIMITER

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

Definition at line 39 of file ChatCommandHelpers.h.