mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
Merge branch 'master' of github.com:TrinityCore/TrinityCore into boost
Conflicts: src/server/game/Battlegrounds/BattlegroundMgr.h
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
#include "DBCEnums.h"
|
||||
#include "Battleground.h"
|
||||
#include "BattlegroundQueue.h"
|
||||
#include <ace/Singleton.h>
|
||||
|
||||
typedef std::map<uint32, Battleground*> BattlegroundContainer;
|
||||
typedef std::set<uint32> BattlegroundClientIdsContainer;
|
||||
@@ -58,13 +57,17 @@ struct BattlegroundTemplate
|
||||
|
||||
class BattlegroundMgr
|
||||
{
|
||||
friend class ACE_Singleton<BattlegroundMgr, ACE_Null_Mutex>;
|
||||
|
||||
private:
|
||||
BattlegroundMgr();
|
||||
~BattlegroundMgr();
|
||||
|
||||
public:
|
||||
static BattlegroundMgr* instance()
|
||||
{
|
||||
static BattlegroundMgr* instance = new BattlegroundMgr();
|
||||
return instance;
|
||||
}
|
||||
|
||||
void Update(uint32 diff);
|
||||
|
||||
/* Packet Building */
|
||||
@@ -171,6 +174,6 @@ class BattlegroundMgr
|
||||
BattlegroundMapTemplateContainer _battlegroundMapTemplates;
|
||||
};
|
||||
|
||||
#define sBattlegroundMgr ACE_Singleton<BattlegroundMgr, ACE_Null_Mutex>::instance()
|
||||
#define sBattlegroundMgr BattlegroundMgr::instance()
|
||||
|
||||
#endif // __BATTLEGROUNDMGR_H
|
||||
|
||||
Reference in New Issue
Block a user