mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 01:59:09 +00:00
feat(Core/Chat): new argument parsing and unify chat hyperlink parsing (#6243)
This commit is contained in:
@@ -29,14 +29,20 @@ EndScriptData */
|
||||
#include "ScriptMgr.h"
|
||||
#include "SpellInfo.h"
|
||||
|
||||
#if AC_COMPILER == AC_COMPILER_GNU
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
||||
using namespace Acore::ChatCommands;
|
||||
|
||||
class cast_commandscript : public CommandScript
|
||||
{
|
||||
public:
|
||||
cast_commandscript() : CommandScript("cast_commandscript") { }
|
||||
|
||||
std::vector<ChatCommand> GetCommands() const override
|
||||
ChatCommandTable GetCommands() const override
|
||||
{
|
||||
static std::vector<ChatCommand> castCommandTable =
|
||||
static ChatCommandTable castCommandTable =
|
||||
{
|
||||
{ "back", SEC_GAMEMASTER, false, &HandleCastBackCommand, "" },
|
||||
{ "dist", SEC_GAMEMASTER, false, &HandleCastDistCommand, "" },
|
||||
@@ -45,7 +51,7 @@ public:
|
||||
{ "dest", SEC_GAMEMASTER, false, &HandleCastDestCommand, "" },
|
||||
{ "", SEC_GAMEMASTER, false, &HandleCastCommand, "" }
|
||||
};
|
||||
static std::vector<ChatCommand> commandTable =
|
||||
static ChatCommandTable commandTable =
|
||||
{
|
||||
{ "cast", SEC_GAMEMASTER, false, nullptr, "", castCommandTable }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user