From 0948fc5bbed08ae6edee4fa1ff86df5cfbffa996 Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 22 Dec 2010 20:52:47 +0100 Subject: Core: Converted (hopefully) all remaining singletons to use ACE_Singleton class --HG-- branch : trunk --- src/server/game/Scripting/ScriptSystem.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/server/game/Scripting/ScriptSystem.h') diff --git a/src/server/game/Scripting/ScriptSystem.h b/src/server/game/Scripting/ScriptSystem.h index 52401502c83..27a20f009a6 100644 --- a/src/server/game/Scripting/ScriptSystem.h +++ b/src/server/game/Scripting/ScriptSystem.h @@ -4,6 +4,7 @@ #ifndef SC_SYSTEM_H #define SC_SYSTEM_H +#include #define TEXT_SOURCE_RANGE -1000000 //the amount of entries each text source has available @@ -51,13 +52,10 @@ struct StringTextData class SystemMgr { - public: - - SystemMgr(); + friend class ACE_Singleton; + SystemMgr() {} ~SystemMgr() {} - - static SystemMgr& Instance(); - + public: //Maps and lists typedef UNORDERED_MAP TextDataMap; typedef UNORDERED_MAP > PointMoveMap; @@ -97,6 +95,6 @@ class SystemMgr PointMoveMap m_mPointMoveMap; //coordinates for waypoints }; -#define sScriptSystemMgr SystemMgr::Instance() +#define sScriptSystemMgr (*ACE_Singleton::instance()) #endif -- cgit v1.2.3