summaryrefslogtreecommitdiffstats
path: root/source/GroupManager.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-12 05:46:01 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-12 05:46:01 +0100
commit43e684071933adef93040e8d4b830d5c6b71cf9a (patch)
tree014e5300feb1cdbbb8f24e4e42594eeb841f0be2 /source/GroupManager.cpp
parentFixed rclk in doublechests (diff)
downloadcuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar
cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.gz
cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.bz2
cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.lz
cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.xz
cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.tar.zst
cuberite-43e684071933adef93040e8d4b830d5c6b71cf9a.zip
Diffstat (limited to 'source/GroupManager.cpp')
-rw-r--r--source/GroupManager.cpp26
1 files changed, 20 insertions, 6 deletions
diff --git a/source/GroupManager.cpp b/source/GroupManager.cpp
index 912f1196c..a474de9cb 100644
--- a/source/GroupManager.cpp
+++ b/source/GroupManager.cpp
@@ -12,16 +12,19 @@
typedef std::map< AString, cGroup* > GroupMap;
+
+
+
+
+
struct cGroupManager::sGroupManagerState
{
GroupMap Groups;
};
-cGroupManager* cGroupManager::GetGroupManager()
-{
- LOGWARN("WARNING: Using deprecated function cGroupManager::GetGroupManager() use cRoot::Get()->GetGroupManager() instead!");
- return cRoot::Get()->GetGroupManager();
-}
+
+
+
cGroupManager::~cGroupManager()
{
@@ -34,6 +37,10 @@ cGroupManager::~cGroupManager()
delete m_pState;
}
+
+
+
+
cGroupManager::cGroupManager()
: m_pState( new sGroupManagerState )
{
@@ -98,6 +105,10 @@ cGroupManager::cGroupManager()
LOG("-- Done Loading Groups --");
}
+
+
+
+
cGroup* cGroupManager::GetGroup( const AString & a_Name )
{
GroupMap::iterator itr = m_pState->Groups.find( a_Name );
@@ -110,5 +121,8 @@ cGroup* cGroupManager::GetGroup( const AString & a_Name )
m_pState->Groups[a_Name] = Group;
return Group;
+}
+
+
+
-} \ No newline at end of file