diff options
author | Treeston <treeston.mmoc@gmail.com> | 2020-09-20 02:50:38 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-02-27 20:08:41 +0100 |
commit | 3fd2eb126cbed36292fa5defc024c2b93e8d8671 (patch) | |
tree | 6068f6e874d7552fcf00a92ca75a85381323a038 /src/server/game/Scripting/ScriptMgr.h | |
parent | 7a2c3af98831364988db25dd1bdd8ca10464c641 (diff) |
[3.3.5] ChatCommands, the other half: chat command resolution refactor (PR #25463)
(cherry picked from commit 1eca51b417678b9a48b28552925d5694105f82bb)
Diffstat (limited to 'src/server/game/Scripting/ScriptMgr.h')
-rw-r--r-- | src/server/game/Scripting/ScriptMgr.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server/game/Scripting/ScriptMgr.h b/src/server/game/Scripting/ScriptMgr.h index 9d420542cae..36e0a2addfc 100644 --- a/src/server/game/Scripting/ScriptMgr.h +++ b/src/server/game/Scripting/ScriptMgr.h @@ -34,7 +34,6 @@ class Battlefield; class Battleground; class BattlegroundMap; class Channel; -class ChatCommand; class Conversation; class Creature; class CreatureAI; @@ -79,6 +78,8 @@ struct Position; struct QuestObjective; struct SceneTemplate; +namespace Trinity::ChatCommands { struct ChatCommandBuilder; } + enum BattlegroundTypeId : uint32; enum Difficulty : uint8; enum DuelCompleteType : uint8; @@ -569,7 +570,7 @@ class TC_GAME_API CommandScript : public ScriptObject ~CommandScript(); // Should return a pointer to a valid command table (ChatCommand array) to be used by ChatHandler. - virtual std::vector<ChatCommand> GetCommands() const = 0; + virtual std::vector<Trinity::ChatCommands::ChatCommandBuilder> GetCommands() const = 0; }; class TC_GAME_API WeatherScript : public ScriptObject, public UpdatableScript<Weather> @@ -1149,7 +1150,7 @@ class TC_GAME_API ScriptMgr public: /* CommandScript */ - std::vector<ChatCommand> GetChatCommands(); + std::vector<Trinity::ChatCommands::ChatCommandBuilder> GetChatCommands(); public: /* WeatherScript */ |