summaryrefslogtreecommitdiffstats
path: root/source/cRoot.h
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.h
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 'source/cRoot.h')
-rw-r--r--source/cRoot.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/cRoot.h b/source/cRoot.h
index 9505ff6f0..702768b0e 100644
--- a/source/cRoot.h
+++ b/source/cRoot.h
@@ -19,6 +19,8 @@ class cWebAdmin;
class cPluginManager;
class cServer;
class cWorld;
+class cPlayer;
+typedef cItemCallback<cPlayer> cPlayerListCallback;
@@ -56,6 +58,12 @@ public:
int GetTotalChunkCount(void); // tolua_export
+ /// Saves all chunks in all worlds
+ void SaveAllChunks(void);
+
+ /// Calls the callback for each player in all worlds
+ bool ForEachPlayer(cPlayerListCallback & a_Callback);
+
private:
void LoadGlobalSettings();