mirror of
https://github.com/brighton-chi/mod-aoe-loot.git
synced 2026-01-13 00:58:34 +00:00
Update aoe_loot.h
This commit is contained in:
@@ -3,9 +3,20 @@
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "Config.h"
|
||||
#include "ServerScript.h"
|
||||
#include "Chat.h"
|
||||
#include "Player.h"
|
||||
#include "Item.h"
|
||||
#include "ScriptedGossip.h"
|
||||
#include "ChatCommand.h"
|
||||
#include "ChatCommandArgs.h"
|
||||
#include "AccountMgr.h"
|
||||
#include <vector>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <ObjectGuid.h>
|
||||
|
||||
using namespace Acore::ChatCommands;
|
||||
|
||||
enum AoeLootString
|
||||
{
|
||||
@@ -13,14 +24,6 @@ enum AoeLootString
|
||||
AOE_ITEM_IN_THE_MAIL
|
||||
};
|
||||
|
||||
class AOELootPlayer : public PlayerScript
|
||||
{
|
||||
public:
|
||||
AOELootPlayer() : PlayerScript("AOELootPlayer") { }
|
||||
|
||||
void OnPlayerLogin(Player* player) override;
|
||||
};
|
||||
|
||||
class AOELootServer : public ServerScript
|
||||
{
|
||||
public:
|
||||
@@ -29,10 +32,25 @@ public:
|
||||
bool CanPacketReceive(WorldSession* session, WorldPacket& packet) override;
|
||||
};
|
||||
|
||||
void AddSC_AoeLoot()
|
||||
class AOELootPlayer : public PlayerScript
|
||||
{
|
||||
new AOELootPlayer();
|
||||
new AOELootServer();
|
||||
}
|
||||
public:
|
||||
AOELootPlayer() : PlayerScript("AOELootPlayer") {}
|
||||
|
||||
void OnPlayerLogin(Player* player) override;
|
||||
|
||||
};
|
||||
|
||||
class AoeLootCommandScript : public CommandScript
|
||||
{
|
||||
public:
|
||||
AoeLootCommandScript() : CommandScript("AoeLootCommandScript") {}
|
||||
ChatCommandTable GetCommands() const override;
|
||||
|
||||
static bool HandleStartAoeLootCommand(ChatHandler* handler, Optional<std::string> args);
|
||||
};
|
||||
|
||||
void AddSC_AoeLoot();
|
||||
|
||||
|
||||
#endif //MODULE_AOELOOT_H
|
||||
Reference in New Issue
Block a user