feat(Core/Chat): new argument parsing and unify chat hyperlink parsing (#6243)
This commit is contained in:
parent
1101f9dd2a
commit
bc9473482e
90 changed files with 4280 additions and 2508 deletions
|
|
@ -28,21 +28,27 @@ EndScriptData */
|
|||
#include "ReputationMgr.h"
|
||||
#include "ScriptMgr.h"
|
||||
|
||||
#if AC_COMPILER == AC_COMPILER_GNU
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
||||
using namespace Acore::ChatCommands;
|
||||
|
||||
class quest_commandscript : public CommandScript
|
||||
{
|
||||
public:
|
||||
quest_commandscript() : CommandScript("quest_commandscript") { }
|
||||
|
||||
std::vector<ChatCommand> GetCommands() const override
|
||||
ChatCommandTable GetCommands() const override
|
||||
{
|
||||
static std::vector<ChatCommand> questCommandTable =
|
||||
static ChatCommandTable questCommandTable =
|
||||
{
|
||||
{ "add", SEC_GAMEMASTER, false, &HandleQuestAdd, "" },
|
||||
{ "complete", SEC_GAMEMASTER, false, &HandleQuestComplete, "" },
|
||||
{ "remove", SEC_GAMEMASTER, false, &HandleQuestRemove, "" },
|
||||
{ "reward", SEC_GAMEMASTER, false, &HandleQuestReward, "" },
|
||||
};
|
||||
static std::vector<ChatCommand> commandTable =
|
||||
static ChatCommandTable commandTable =
|
||||
{
|
||||
{ "quest", SEC_GAMEMASTER, false, nullptr, "", questCommandTable },
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue