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.h | |
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.h')
-rw-r--r-- | source/cRoot.h | 8 |
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();
|