Update chat system, based on TrinityCore commit

This commit is contained in:
ShinDarth
2016-08-19 20:26:58 +02:00
parent 55c47f8a35
commit cb30a6b404
36 changed files with 751 additions and 781 deletions

View File

@@ -16,22 +16,22 @@ class spectator_commandscript : public CommandScript
public:
spectator_commandscript() : CommandScript("spectator_commandscript") { }
ChatCommand* GetCommands() const
std::vector<ChatCommand> GetCommands() const override
{
static ChatCommand spectatorCommandTable[] =
static std::vector<ChatCommand> spectatorCommandTable =
{
{ "version", SEC_CONSOLE, false, &HandleSpectatorVersionCommand, "", NULL },
{ "reset", SEC_CONSOLE, false, &HandleSpectatorResetCommand, "", NULL },
{ "spectate", SEC_CONSOLE, false, &ArenaSpectator::HandleSpectatorSpectateCommand, "", NULL },
{ "watch", SEC_CONSOLE, false, &ArenaSpectator::HandleSpectatorWatchCommand, "", NULL },
{ "leave", SEC_CONSOLE, false, &HandleSpectatorLeaveCommand, "", NULL },
{ "", SEC_CONSOLE, false, &HandleSpectatorCommand, "", NULL },
{ NULL, 0, false, NULL, "", NULL }
{ "version", SEC_CONSOLE, false, &HandleSpectatorVersionCommand, "" },
{ "reset", SEC_CONSOLE, false, &HandleSpectatorResetCommand, "" },
{ "spectate", SEC_CONSOLE, false, &ArenaSpectator::HandleSpectatorSpectateCommand, "" },
{ "watch", SEC_CONSOLE, false, &ArenaSpectator::HandleSpectatorWatchCommand, "" },
{ "leave", SEC_CONSOLE, false, &HandleSpectatorLeaveCommand, "" },
{ "", SEC_CONSOLE, false, &HandleSpectatorCommand, "" },
{ NULL, 0, false, NULL, "" }
};
static ChatCommand commandTable[] =
static std::vector<ChatCommand> commandTable =
{
{ "spect", SEC_CONSOLE, false, NULL, "", spectatorCommandTable },
{ NULL, 0, false, NULL, "", NULL }
{ NULL, 0, false, NULL, "" }
};
return commandTable;
}