mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
call OnObjectDBLoad(Creature/GameObject) for battleground at object-loading
this is a virtual function and can be used to move gameobjects and creatures from battlegroundcode to database for this i also had to add a BattleGround-pointer to the map so i renamed CreateBattleGround(instanceid) to CreateBattleGroundMap(instanceid, Battleground*)
This commit is contained in:
parent
1665077dc4
commit
bd87209498
5 changed files with 17 additions and 5 deletions
|
|
@ -43,6 +43,7 @@ class Group;
|
|||
class InstanceSave;
|
||||
struct ScriptInfo;
|
||||
struct ScriptAction;
|
||||
class BattleGround;
|
||||
|
||||
|
||||
typedef ACE_RW_Thread_Mutex GridRWLock;
|
||||
|
|
@ -585,6 +586,10 @@ class MANGOS_DLL_SPEC BattleGroundMap : public Map
|
|||
void UnloadAll(bool pForce);
|
||||
|
||||
virtual void InitVisibilityDistance();
|
||||
BattleGround* GetBG() { return m_bg; }
|
||||
void SetBG(BattleGround* bg) { m_bg = bg; }
|
||||
private:
|
||||
BattleGround* m_bg;
|
||||
};
|
||||
|
||||
/*inline
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue