TrinityCore
Loading...
Searching...
No Matches
Trinity::ChatCommands::ChatCommandBuilder Struct Reference

Classes

struct  InvokerEntry
 

Public Types

using SubCommandEntry = std::span< ChatCommandBuilder const >
 

Public Member Functions

template<typename TypedHandler >
 ChatCommandBuilder (std::string_view name, TypedHandler &handler, TrinityStrings help, rbac::RBACPermissions permission, Trinity::ChatCommands::Console allowConsole)
 
template<typename TypedHandler >
 ChatCommandBuilder (std::string_view name, TypedHandler &handler, rbac::RBACPermissions permission, Trinity::ChatCommands::Console allowConsole)
 
 ChatCommandBuilder (std::string_view name, std::span< ChatCommandBuilder const > subCommands)
 
 ChatCommandBuilder (char const *name, bool(&handler)(ChatHandler *, char const *), rbac::RBACPermissions permission, Trinity::ChatCommands::Console allowConsole)
 
template<typename TypedHandler >
 ChatCommandBuilder (char const *name, rbac::RBACPermissions permission, bool console, TypedHandler *handler, char const *)
 
 ChatCommandBuilder (char const *name, rbac::RBACPermissions, bool, std::nullptr_t, char const *, SubCommandEntry sub)
 

Private Attributes

std::string_view _name
 
std::variant< InvokerEntry, std::pair< ChatCommandBuilder const *, std::size_t > > _data
 

Friends

class Trinity::Impl::ChatCommands::ChatCommandNode
 

Detailed Description

Definition at line 220 of file ChatCommand.h.

Member Typedef Documentation

◆ SubCommandEntry

Constructor & Destructor Documentation

◆ ChatCommandBuilder() [1/6]

template<typename TypedHandler >
Trinity::ChatCommands::ChatCommandBuilder::ChatCommandBuilder ( std::string_view  name,
TypedHandler &  handler,
TrinityStrings  help,
rbac::RBACPermissions  permission,
Trinity::ChatCommands::Console  allowConsole 
)
inline

Definition at line 237 of file ChatCommand.h.

◆ ChatCommandBuilder() [2/6]

template<typename TypedHandler >
Trinity::ChatCommands::ChatCommandBuilder::ChatCommandBuilder ( std::string_view  name,
TypedHandler &  handler,
rbac::RBACPermissions  permission,
Trinity::ChatCommands::Console  allowConsole 
)
inline

Definition at line 242 of file ChatCommand.h.

◆ ChatCommandBuilder() [3/6]

Trinity::ChatCommands::ChatCommandBuilder::ChatCommandBuilder ( std::string_view  name,
std::span< ChatCommandBuilder const >  subCommands 
)
inline

Definition at line 245 of file ChatCommand.h.

◆ ChatCommandBuilder() [4/6]

Trinity::ChatCommands::ChatCommandBuilder::ChatCommandBuilder ( char const *  name,
bool(&)(ChatHandler *, char const *)  handler,
rbac::RBACPermissions  permission,
Trinity::ChatCommands::Console  allowConsole 
)
inline

Definition at line 250 of file ChatCommand.h.

◆ ChatCommandBuilder() [5/6]

template<typename TypedHandler >
Trinity::ChatCommands::ChatCommandBuilder::ChatCommandBuilder ( char const *  name,
rbac::RBACPermissions  permission,
bool  console,
TypedHandler *  handler,
char const *   
)
inline

Definition at line 256 of file ChatCommand.h.

◆ ChatCommandBuilder() [6/6]

Trinity::ChatCommands::ChatCommandBuilder::ChatCommandBuilder ( char const *  name,
rbac::RBACPermissions  ,
bool  ,
std::nullptr_t  ,
char const *  ,
SubCommandEntry  sub 
)
inline

Definition at line 261 of file ChatCommand.h.

Friends And Related Symbol Documentation

◆ Trinity::Impl::ChatCommands::ChatCommandNode

Definition at line 222 of file ChatCommand.h.

Member Data Documentation

◆ _data

std::variant<InvokerEntry, std::pair<ChatCommandBuilder const*, std::size_t> > Trinity::ChatCommands::ChatCommandBuilder::_data
private

Definition at line 267 of file ChatCommand.h.

◆ _name

std::string_view Trinity::ChatCommands::ChatCommandBuilder::_name
private

Definition at line 266 of file ChatCommand.h.


The documentation for this struct was generated from the following file: