From 1eca51b417678b9a48b28552925d5694105f82bb Mon Sep 17 00:00:00 2001 From: Treeston Date: Sun, 20 Sep 2020 02:50:38 +0200 Subject: [3.3.5] ChatCommands, the other half: chat command resolution refactor (PR #25463) --- src/server/game/Scripting/ScriptMgr.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/server/game/Scripting/ScriptMgr.h') diff --git a/src/server/game/Scripting/ScriptMgr.h b/src/server/game/Scripting/ScriptMgr.h index 0f5caa70a30..3069fcc80cf 100644 --- a/src/server/game/Scripting/ScriptMgr.h +++ b/src/server/game/Scripting/ScriptMgr.h @@ -32,7 +32,6 @@ class Battlefield; class Battleground; class BattlegroundMap; class Channel; -class ChatCommand; class Creature; class CreatureAI; class DynamicObject; @@ -74,6 +73,8 @@ struct ItemTemplate; struct MapEntry; struct Position; +namespace Trinity::ChatCommands { struct ChatCommandBuilder; } + enum BattlegroundTypeId : uint32; enum ContentLevels : uint8; enum Difficulty : uint8; @@ -512,7 +513,7 @@ class TC_GAME_API CommandScript : public ScriptObject public: // Should return a pointer to a valid command table (ChatCommand array) to be used by ChatHandler. - virtual std::vector GetCommands() const = 0; + virtual std::vector GetCommands() const = 0; }; class TC_GAME_API WeatherScript : public ScriptObject, public UpdatableScript @@ -968,7 +969,7 @@ class TC_GAME_API ScriptMgr public: /* CommandScript */ - std::vector GetChatCommands(); + std::vector GetChatCommands(); public: /* WeatherScript */ -- cgit v1.2.3