Added base BG methods and hooks

This has only been tested on Mangos Zero and will definitely need tweaking on Trinity

More methods will be added SHORTLY
This commit is contained in:
Foereaper
2014-09-10 22:38:21 +02:00
parent f2a591b87b
commit 0bfdf632e7
8 changed files with 308 additions and 2 deletions

View File

@@ -38,6 +38,7 @@ typedef int Difficulty;
struct AreaTriggerEntry;
class AuctionHouseObject;
class BattleGround;
class Channel;
class Corpse;
class Creature;
@@ -124,6 +125,7 @@ public:
EntryBind<HookMgr::ItemEvents>* ItemEventBindings;
EntryBind<HookMgr::GossipEvents>* ItemGossipBindings;
EntryBind<HookMgr::GossipEvents>* playerGossipBindings;
EntryBind<HookMgr::BGEvents>* BGEventBindings;
Eluna();
~Eluna();
@@ -344,6 +346,10 @@ public:
void OnUpdate(uint32 diff);
void OnStartup();
void OnShutdown();
/* Battle Ground */
void OnBGStart(BattleGround* bg, BattleGroundTypeId bgId, uint32 instanceId);
void OnBGEnd(BattleGround* bg);
};
template<> Unit* Eluna::CHECKOBJ<Unit>(lua_State* L, int narg, bool error);
template<> Player* Eluna::CHECKOBJ<Player>(lua_State* L, int narg, bool error);