вывод из самбомудлей модов для азероткор
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
#ifndef __AB_COMMAND_SCRIPT_H
|
||||
#define __AB_COMMAND_SCRIPT_H
|
||||
|
||||
#include "Chat.h"
|
||||
#include "Config.h"
|
||||
#include "ScriptMgr.h"
|
||||
|
||||
using namespace Acore::ChatCommands;
|
||||
|
||||
class AutoBalance_CommandScript : public CommandScript
|
||||
{
|
||||
public:
|
||||
AutoBalance_CommandScript() : CommandScript("AutoBalance_CommandScript") { }
|
||||
|
||||
ChatCommandTable GetCommands() const override
|
||||
{
|
||||
static ChatCommandTable ABCommandTable =
|
||||
{
|
||||
{ "setoffset", HandleABSetOffsetCommand, SEC_GAMEMASTER, Console::Yes },
|
||||
{ "getoffset", HandleABGetOffsetCommand, SEC_PLAYER, Console::Yes },
|
||||
{ "mapstat", HandleABMapStatsCommand, SEC_PLAYER, Console::Yes },
|
||||
{ "creaturestat", HandleABCreatureStatsCommand, SEC_PLAYER, Console::Yes }
|
||||
};
|
||||
|
||||
static ChatCommandTable commandTable =
|
||||
{
|
||||
{ "autobalance", ABCommandTable },
|
||||
{ "ab", ABCommandTable },
|
||||
};
|
||||
|
||||
return commandTable;
|
||||
};
|
||||
|
||||
static bool HandleABSetOffsetCommand(ChatHandler* handler, const char* args);
|
||||
static bool HandleABGetOffsetCommand(ChatHandler* handler, const char* args);
|
||||
static bool HandleABMapStatsCommand(ChatHandler* handler, const char* args);
|
||||
static bool HandleABCreatureStatsCommand(ChatHandler* handler, const char* args);
|
||||
};
|
||||
|
||||
#endif /* __AB_COMMAND_SCRIPT_H */
|
||||
Reference in New Issue
Block a user