feat(Core/Scripts): Optimize AllCommandScript (#18703)

* Add files via upload

* Update AllCommandScript.h
This commit is contained in:
天鹿
2024-04-12 21:59:56 +08:00
committed by GitHub
parent d87af54675
commit a4af83b277
2 changed files with 19 additions and 14 deletions

View File

@@ -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; }