mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 20:56:23 +00:00
refactor(Scripts/Commands): convert cs_misc to new system (#8939)
This commit is contained in:
committed by
GitHub
parent
7617ae4645
commit
838c88f45a
@@ -18,11 +18,11 @@
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptMgrMacros.h"
|
||||
|
||||
void ScriptMgr::OnHandleDevCommand(Player* player, std::string& argstr)
|
||||
void ScriptMgr::OnHandleDevCommand(Player* player, bool& enable)
|
||||
{
|
||||
ExecuteScript<CommandSC>([&](CommandSC* script)
|
||||
{
|
||||
script->OnHandleDevCommand(player, argstr);
|
||||
script->OnHandleDevCommand(player, enable);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -1842,7 +1842,7 @@ public:
|
||||
|
||||
bool IsDatabaseBound() const { return false; }
|
||||
|
||||
virtual void OnHandleDevCommand(Player* /*player*/, std::string& /*argstr*/) { }
|
||||
virtual void OnHandleDevCommand(Player* /*player*/, bool& /*enable*/) { }
|
||||
|
||||
/**
|
||||
* @brief This hook runs execute chat command
|
||||
@@ -2464,7 +2464,7 @@ public: /* MiscScript */
|
||||
|
||||
public: /* CommandSC */
|
||||
|
||||
void OnHandleDevCommand(Player* player, std::string& argstr);
|
||||
void OnHandleDevCommand(Player* player, bool& enable);
|
||||
bool CanExecuteCommand(ChatHandler& handler, std::string_view cmdStr);
|
||||
|
||||
public: /* DatabaseScript */
|
||||
|
||||
Reference in New Issue
Block a user