TrinityCore
ChatCommand.h File Reference
#include "ChatCommandArgs.h"
#include "ChatCommandTags.h"
#include "Define.h"
#include "Errors.h"
#include "Language.h"
#include "Optional.h"
#include "RBAC.h"
#include "StringFormat.h"
#include "Util.h"
#include <cstddef>
#include <map>
#include <utility>
#include <tuple>
#include <type_traits>
#include <variant>
#include <vector>
+ Include dependency graph for ChatCommand.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Trinity::Impl::ChatCommands::MultiConsumer< Tuple, NextType, offset >
 
struct  Trinity::Impl::ChatCommands::MultiConsumer< Tuple, Optional< NestedNextType >, offset >
 
struct  Trinity::Impl::ChatCommands::HandlerToTuple< T >
 
struct  Trinity::Impl::ChatCommands::HandlerToTuple< bool(ChatHandler *, Ts...)>
 
struct  Trinity::Impl::ChatCommands::CommandInvoker
 
struct  Trinity::Impl::ChatCommands::CommandPermissions
 
class  Trinity::Impl::ChatCommands::ChatCommandNode
 
struct  Trinity::ChatCommands::ChatCommandBuilder
 
struct  Trinity::ChatCommands::ChatCommandBuilder::InvokerEntry
 

Namespaces

namespace  Trinity
 
namespace  Trinity::ChatCommands
 
namespace  Trinity::Impl
 
namespace  Trinity::Impl::ChatCommands
 

Typedefs

using Trinity::ChatCommands::ChatCommandTable = std::vector< ChatCommandBuilder >
 
template<typename T >
using Trinity::Impl::ChatCommands::TupleType = typename HandlerToTuple< T >::type
 
using ChatCommand = Trinity::ChatCommands::ChatCommandBuilder
 

Enumerations

enum class  Trinity::ChatCommands::Console : bool { Trinity::ChatCommands::No = false , Trinity::ChatCommands::Yes = true }
 

Functions

template<typename Tuple , size_t offset>
ChatCommandResult Trinity::Impl::ChatCommands::ConsumeFromOffset (Tuple &, ChatHandler const *handler, std::string_view args)
 
TC_GAME_API void Trinity::ChatCommands::LoadCommandMap ()
 
TC_GAME_API void Trinity::ChatCommands::InvalidateCommandMap ()
 
TC_GAME_API bool Trinity::ChatCommands::TryExecuteCommand (ChatHandler &handler, std::string_view cmd)
 
TC_GAME_API void Trinity::ChatCommands::SendCommandHelpFor (ChatHandler &handler, std::string_view cmd)
 
TC_GAME_API std::vector< std::string > Trinity::ChatCommands::GetAutoCompletionsFor (ChatHandler const &handler, std::string_view cmd)
 

Typedef Documentation

◆ ChatCommand