diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-10 23:27:24 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-10 23:27:24 +0100 |
commit | 219be8186c5b64df7f56cafe9e97322732c7a224 (patch) | |
tree | 73c72f03c4f1f2050a6e1ebf61e422052fb56312 /source/cRoot.cpp | |
parent | Completely integrated the new axis ordering. Will update worlds accordingly (diff) | |
download | cuberite-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 'source/cRoot.cpp')
-rw-r--r-- | source/cRoot.cpp | 28 |
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;
+}
+
+
+
+
|