AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::ChatCommands::ChatCommandBuilder::InvokerEntry Struct Reference

#include "ChatCommand.h"

Public Member Functions

template<typename T >
 InvokerEntry (T &handler, AcoreStrings help, uint32 securityLevel, Acore::ChatCommands::Console allowConsole)
 
 InvokerEntry (InvokerEntry const &)=default
 
 InvokerEntry (InvokerEntry &&)=default
 
auto operator* () const
 

Public Attributes

Acore::Impl::ChatCommands::CommandInvoker _invoker
 
AcoreStrings _help
 
Acore::Impl::ChatCommands::CommandPermissions _permissions
 

Detailed Description

Constructor & Destructor Documentation

◆ InvokerEntry() [1/3]

template<typename T >
Acore::ChatCommands::ChatCommandBuilder::InvokerEntry::InvokerEntry ( T &  handler,
AcoreStrings  help,
uint32  securityLevel,
Acore::ChatCommands::Console  allowConsole 
)
inline
220 : _invoker{ handler }, _help{ help }, _permissions{ securityLevel, allowConsole } { }
AcoreStrings _help
Definition: ChatCommand.h:226
Acore::Impl::ChatCommands::CommandInvoker _invoker
Definition: ChatCommand.h:225
Acore::Impl::ChatCommands::CommandPermissions _permissions
Definition: ChatCommand.h:227

◆ InvokerEntry() [2/3]

Acore::ChatCommands::ChatCommandBuilder::InvokerEntry::InvokerEntry ( InvokerEntry const &  )
default

◆ InvokerEntry() [3/3]

Acore::ChatCommands::ChatCommandBuilder::InvokerEntry::InvokerEntry ( InvokerEntry &&  )
default

Member Function Documentation

◆ operator*()

auto Acore::ChatCommands::ChatCommandBuilder::InvokerEntry::operator* ( ) const
inline
229{ return std::tie(_invoker, _help, _permissions); }

References _help, _invoker, and _permissions.

Member Data Documentation

◆ _help

AcoreStrings Acore::ChatCommands::ChatCommandBuilder::InvokerEntry::_help

Referenced by operator*().

◆ _invoker

Acore::Impl::ChatCommands::CommandInvoker Acore::ChatCommands::ChatCommandBuilder::InvokerEntry::_invoker

Referenced by operator*().

◆ _permissions

Acore::Impl::ChatCommands::CommandPermissions Acore::ChatCommands::ChatCommandBuilder::InvokerEntry::_permissions

Referenced by operator*().