summaryrefslogtreecommitdiffstats
path: root/source/cRoot.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-08 19:57:04 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-08 19:57:04 +0100
commita204e3325010fd7baa8f30a5b05e3ba8450a73c7 (patch)
treef2ce933d000a1294c67cb92ab300ffd2aa56a7f8 /source/cRoot.cpp
parentcPluginManager: slight cleanup (diff)
downloadcuberite-a204e3325010fd7baa8f30a5b05e3ba8450a73c7.tar
cuberite-a204e3325010fd7baa8f30a5b05e3ba8450a73c7.tar.gz
cuberite-a204e3325010fd7baa8f30a5b05e3ba8450a73c7.tar.bz2
cuberite-a204e3325010fd7baa8f30a5b05e3ba8450a73c7.tar.lz
cuberite-a204e3325010fd7baa8f30a5b05e3ba8450a73c7.tar.xz
cuberite-a204e3325010fd7baa8f30a5b05e3ba8450a73c7.tar.zst
cuberite-a204e3325010fd7baa8f30a5b05e3ba8450a73c7.zip
Diffstat (limited to '')
-rw-r--r--source/cRoot.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/cRoot.cpp b/source/cRoot.cpp
index 273bbe318..bea466092 100644
--- a/source/cRoot.cpp
+++ b/source/cRoot.cpp
@@ -283,3 +283,17 @@ void cRoot::AuthenticateUser(const AString & iUserName)
+
+int cRoot::GetTotalChunkCount(void)
+{
+ int res = 0;
+ for ( WorldMap::iterator itr = m_pState->WorldsByName.begin(); itr != m_pState->WorldsByName.end(); ++itr )
+ {
+ res += itr->second->GetNumChunks();
+ }
+ return res;
+}
+
+
+
+