diff options
Diffstat (limited to 'source/cRoot.cpp')
-rw-r--r-- | source/cRoot.cpp | 14 |
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;
+}
+
+
+
+
|