#include "AllCommandScript.h"
◆ AllCommandScript()
AllCommandScript::AllCommandScript |
( |
const char * |
name, |
|
|
std::vector< uint16 > |
enabledHooks = std::vector<uint16>() |
|
) |
| |
|
protected |
40{
41
42 if (enabledHooks.empty())
44 enabledHooks.emplace_back(i);
45
47}
std::uint16_t uint16
Definition: Define.h:108
@ ALLCOMMANDHOOK_END
Definition: AllCommandScript.h:30
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:738
Definition: ScriptObject.h:43
References ScriptRegistry< TScript >::AddScript(), and ALLCOMMANDHOOK_END.
◆ IsDatabaseBound()
bool AllCommandScript::IsDatabaseBound |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ OnBeforeIsInvokerVisible()
◆ OnHandleDevCommand()
virtual void AllCommandScript::OnHandleDevCommand |
( |
Player * |
, |
|
|
bool & |
|
|
) |
| |
|
inlinevirtual |
◆ OnTryExecuteCommand()
virtual bool AllCommandScript::OnTryExecuteCommand |
( |
ChatHandler & |
, |
|
|
std::string_view |
|
|
) |
| |
|
inlinevirtual |
This hook is triggered when a command is parsed, but before it is executed.
- Parameters
-
handler | Contains information about the ChatHandler |
cmdStr | Contains information about the command name |