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 "ScriptMgr.h"
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
|
#include "ServerScript.h"
|
||||||
#include "Chat.h"
|
#include "Chat.h"
|
||||||
#include "Player.h"
|
#include "Player.h"
|
||||||
|
#include "Item.h"
|
||||||
#include "ScriptedGossip.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
|
enum AoeLootString
|
||||||
{
|
{
|
||||||
@@ -13,26 +24,33 @@ enum AoeLootString
|
|||||||
AOE_ITEM_IN_THE_MAIL
|
AOE_ITEM_IN_THE_MAIL
|
||||||
};
|
};
|
||||||
|
|
||||||
class AOELootPlayer : public PlayerScript
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
AOELootPlayer() : PlayerScript("AOELootPlayer") { }
|
|
||||||
|
|
||||||
void OnPlayerLogin(Player* player) override;
|
|
||||||
};
|
|
||||||
|
|
||||||
class AOELootServer : public ServerScript
|
class AOELootServer : public ServerScript
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AOELootServer() : ServerScript("AOELootServer") { }
|
AOELootServer() : ServerScript("AOELootServer") {}
|
||||||
|
|
||||||
bool CanPacketReceive(WorldSession* session, WorldPacket& packet) override;
|
bool CanPacketReceive(WorldSession* session, WorldPacket& packet) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
void AddSC_AoeLoot()
|
class AOELootPlayer : public PlayerScript
|
||||||
{
|
{
|
||||||
new AOELootPlayer();
|
public:
|
||||||
new AOELootServer();
|
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
|
#endif //MODULE_AOELOOT_H
|
||||||
Reference in New Issue
Block a user