#include "AllCommandScript.h"
◆ AllCommandScript()
AllCommandScript::AllCommandScript |
( |
const char * |
name, |
|
|
std::vector< uint16 > |
enabledHooks = std::vector<uint16>() |
|
) |
| |
|
protected |
34{
35
36 if (enabledHooks.empty())
38 enabledHooks.emplace_back(i);
39
41}
std::uint16_t uint16
Definition: Define.h:108
@ ALLCOMMANDHOOK_END
Definition: AllCommandScript.h:28
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:737
Definition: ScriptObject.h:44
References ScriptRegistry< TScript >::AddScript(), and ALLCOMMANDHOOK_END.
◆ IsDatabaseBound()
bool AllCommandScript::IsDatabaseBound |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ 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 |