summaryrefslogtreecommitdiffstats
path: root/source/cRoot.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-10 23:27:24 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-10 23:27:24 +0100
commit219be8186c5b64df7f56cafe9e97322732c7a224 (patch)
tree73c72f03c4f1f2050a6e1ebf61e422052fb56312 /source/cRoot.cpp
parentCompletely integrated the new axis ordering. Will update worlds accordingly (diff)
downloadcuberite-219be8186c5b64df7f56cafe9e97322732c7a224.tar
cuberite-219be8186c5b64df7f56cafe9e97322732c7a224.tar.gz
cuberite-219be8186c5b64df7f56cafe9e97322732c7a224.tar.bz2
cuberite-219be8186c5b64df7f56cafe9e97322732c7a224.tar.lz
cuberite-219be8186c5b64df7f56cafe9e97322732c7a224.tar.xz
cuberite-219be8186c5b64df7f56cafe9e97322732c7a224.tar.zst
cuberite-219be8186c5b64df7f56cafe9e97322732c7a224.zip
Diffstat (limited to '')
-rw-r--r--source/cRoot.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/source/cRoot.cpp b/source/cRoot.cpp
index 17471d6d9..69127f78e 100644
--- a/source/cRoot.cpp
+++ b/source/cRoot.cpp
@@ -364,3 +364,31 @@ int cRoot::GetTotalChunkCount(void)
+
+void cRoot::SaveAllChunks(void)
+{
+ for (WorldMap::iterator itr = m_pState->WorldsByName.begin(); itr != m_pState->WorldsByName.end(); ++itr)
+ {
+ itr->second->SaveAllChunks();
+ }
+}
+
+
+
+
+
+bool cRoot::ForEachPlayer(cPlayerListCallback & a_Callback)
+{
+ for (WorldMap::iterator itr = m_pState->WorldsByName.begin(); itr != m_pState->WorldsByName.end(); ++itr)
+ {
+ if (!itr->second->ForEachPlayer(a_Callback))
+ {
+ return false;
+ }
+ }
+ return true;
+}
+
+
+
+