diff options
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();
|