summaryrefslogtreecommitdiff
path: root/src/server/game/Scripting/ScriptMgr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/Scripting/ScriptMgr.h')
-rw-r--r--src/server/game/Scripting/ScriptMgr.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/server/game/Scripting/ScriptMgr.h b/src/server/game/Scripting/ScriptMgr.h
index 532ff0a75c..0b5cae72b6 100644
--- a/src/server/game/Scripting/ScriptMgr.h
+++ b/src/server/game/Scripting/ScriptMgr.h
@@ -41,7 +41,6 @@ class Battleground;
class BattlegroundMap;
class BattlegroundQueue;
class Channel;
-class ChatCommand;
class Creature;
class CreatureAI;
class DynamicObject;
@@ -81,6 +80,11 @@ struct OutdoorPvPData;
struct GroupQueueInfo;
struct TargetInfo;
+namespace Acore::ChatCommands
+{
+ struct ChatCommandBuilder;
+}
+
#define VISIBLE_RANGE 166.0f //MAX visible range (size of grid)
// Check out our guide on how to create new hooks in our wiki! https://www.azerothcore.org/wiki/hooks-script
@@ -579,7 +583,7 @@ protected:
public:
// Should return a pointer to a valid command table (ChatCommand array) to be used by ChatHandler.
- [[nodiscard]] virtual std::vector<ChatCommand> GetCommands() const = 0;
+ [[nodiscard]] virtual std::vector<Acore::ChatCommands::ChatCommandBuilder> GetCommands() const = 0;
};
class WeatherScript : public ScriptObject, public UpdatableScript<Weather>
@@ -1566,7 +1570,7 @@ public: /* OutdoorPvPScript */
OutdoorPvP* CreateOutdoorPvP(OutdoorPvPData const* data);
public: /* CommandScript */
- std::vector<ChatCommand> GetChatCommands();
+ std::vector<Acore::ChatCommands::ChatCommandBuilder> GetChatCommands();
public: /* WeatherScript */
void OnWeatherChange(Weather* weather, WeatherState state, float grade);