diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-02 11:38:51 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-02 11:38:51 +0200 |
commit | 1d6c55afcc31fdd9df6e9330c1e6812dfaf45a1a (patch) | |
tree | 7229f7a53d79c5736be4f11718a727d58555f535 /source/cRoot.h | |
parent | Fixed a nasty int overflow bug in blockticking code ( http://forum.mc-server.org/showthread.php?tid=457 ) (diff) | |
download | cuberite-1d6c55afcc31fdd9df6e9330c1e6812dfaf45a1a.tar cuberite-1d6c55afcc31fdd9df6e9330c1e6812dfaf45a1a.tar.gz cuberite-1d6c55afcc31fdd9df6e9330c1e6812dfaf45a1a.tar.bz2 cuberite-1d6c55afcc31fdd9df6e9330c1e6812dfaf45a1a.tar.lz cuberite-1d6c55afcc31fdd9df6e9330c1e6812dfaf45a1a.tar.xz cuberite-1d6c55afcc31fdd9df6e9330c1e6812dfaf45a1a.tar.zst cuberite-1d6c55afcc31fdd9df6e9330c1e6812dfaf45a1a.zip |
Diffstat (limited to 'source/cRoot.h')
-rw-r--r-- | source/cRoot.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/source/cRoot.h b/source/cRoot.h index 3f65305db..5fc43afe8 100644 --- a/source/cRoot.h +++ b/source/cRoot.h @@ -21,6 +21,7 @@ class cServer; class cWorld;
class cPlayer;
typedef cItemCallback<cPlayer> cPlayerListCallback;
+typedef cItemCallback<cWorld> cWorldListCallback;
@@ -36,18 +37,21 @@ public: void Start();
- cServer* GetServer() { return m_Server; } //tolua_export
- OBSOLETE cWorld* GetWorld(); //tolua_export
- cWorld* GetDefaultWorld(); //tolua_export
+ cServer* GetServer(void) { return m_Server; } //tolua_export
+ cWorld* GetDefaultWorld(void); //tolua_export
cWorld* GetWorld( const AString & a_WorldName ); //tolua_export
+
+ /// Calls the callback for each world; returns true if the callback didn't abort (return true)
+ bool ForEachWorld(cWorldListCallback & a_Callback); // >> Exported in ManualBindings <<
+
cMonsterConfig *GetMonsterConfig() { return m_MonsterConfig;}
- cGroupManager* GetGroupManager() { return m_GroupManager; } //tolua_export
- cRecipeChecker* GetRecipeChecker() { return m_RecipeChecker; } //tolua_export
- cFurnaceRecipe* GetFurnaceRecipe() { return m_FurnaceRecipe; } //tolua_export
- cWebAdmin* GetWebAdmin() { return m_WebAdmin; } //tolua_export
- cPluginManager* GetPluginManager() { return m_PluginManager; } //tolua_export
- cAuthenticator & GetAuthenticator() {return m_Authenticator; }
+ cGroupManager * GetGroupManager (void) { return m_GroupManager; } // tolua_export
+ cRecipeChecker * GetRecipeChecker(void) { return m_RecipeChecker; } // tolua_export
+ cFurnaceRecipe * GetFurnaceRecipe(void) { return m_FurnaceRecipe; } // tolua_export
+ cWebAdmin * GetWebAdmin (void) { return m_WebAdmin; } // tolua_export
+ cPluginManager * GetPluginManager(void) { return m_PluginManager; } // tolua_export
+ cAuthenticator & GetAuthenticator(void) { return m_Authenticator; }
void ServerCommand(const char* a_Cmd ); //tolua_export
|