mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +00:00
feat(Core/Scripts): Optimize AllCommandScript (#18703)
* Add files via upload * Update AllCommandScript.h
This commit is contained in:
@@ -19,11 +19,19 @@
|
||||
#define SCRIPT_OBJECT_ALL_COMMAND_SCRIPT_H_
|
||||
|
||||
#include "ScriptObject.h"
|
||||
#include <vector>
|
||||
|
||||
enum AllCommandHook
|
||||
{
|
||||
ALLCOMMANDHOOK_ON_HANDLE_DEV_COMMAND,
|
||||
ALLCOMMANDHOOK_CAN_EXECUTE_COMMAND,
|
||||
ALLCOMMANDHOOK_END
|
||||
};
|
||||
|
||||
class AllCommandScript : public ScriptObject
|
||||
{
|
||||
protected:
|
||||
AllCommandScript(const char* name);
|
||||
AllCommandScript(const char* name, std::vector<uint16> enabledHooks = std::vector<uint16>());
|
||||
|
||||
public:
|
||||
[[nodiscard]] bool IsDatabaseBound() const override { return false; }
|
||||
|
||||
Reference in New Issue
Block a user