mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user