mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 19:05:42 +00:00
feat(Core/Misc): remove and replace ACE_Singleton (#2418)
This commit is contained in:
@@ -63,6 +63,12 @@ class PlayerTextBuilder
|
||||
WorldObject const* _target;
|
||||
};
|
||||
|
||||
CreatureTextMgr* CreatureTextMgr::instance()
|
||||
{
|
||||
static CreatureTextMgr instance;
|
||||
return &instance;
|
||||
}
|
||||
|
||||
void CreatureTextMgr::LoadCreatureTexts()
|
||||
{
|
||||
uint32 oldMSTime = getMSTime();
|
||||
|
||||
@@ -72,10 +72,11 @@ typedef std::unordered_map<uint64, CreatureTextRepeatGroup> CreatureTextRepeatMa
|
||||
|
||||
class CreatureTextMgr
|
||||
{
|
||||
friend class ACE_Singleton<CreatureTextMgr, ACE_Null_Mutex>;
|
||||
CreatureTextMgr() { }
|
||||
|
||||
public:
|
||||
static CreatureTextMgr* instance();
|
||||
|
||||
~CreatureTextMgr() { }
|
||||
void LoadCreatureTexts();
|
||||
void LoadCreatureTextLocales();
|
||||
@@ -103,7 +104,7 @@ class CreatureTextMgr
|
||||
LocaleCreatureTextMap mLocaleTextMap;
|
||||
};
|
||||
|
||||
#define sCreatureTextMgr ACE_Singleton<CreatureTextMgr, ACE_Null_Mutex>::instance()
|
||||
#define sCreatureTextMgr CreatureTextMgr::instance()
|
||||
|
||||
template<class Builder>
|
||||
class CreatureTextLocalizer
|
||||
|
||||
Reference in New Issue
Block a user