summaryrefslogtreecommitdiffstats
path: root/source/cRoot.h
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-01 22:57:08 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-01 22:57:08 +0100
commitb5b920dedaa62302795b0b8f3db84a0650d236e0 (patch)
treef46d1ec70d6519fff2a75f45c08fe37bf4b5538c /source/cRoot.h
parentforogt to update all of cPlayer.cpp for player based gamemode. (diff)
downloadcuberite-b5b920dedaa62302795b0b8f3db84a0650d236e0.tar
cuberite-b5b920dedaa62302795b0b8f3db84a0650d236e0.tar.gz
cuberite-b5b920dedaa62302795b0b8f3db84a0650d236e0.tar.bz2
cuberite-b5b920dedaa62302795b0b8f3db84a0650d236e0.tar.lz
cuberite-b5b920dedaa62302795b0b8f3db84a0650d236e0.tar.xz
cuberite-b5b920dedaa62302795b0b8f3db84a0650d236e0.tar.zst
cuberite-b5b920dedaa62302795b0b8f3db84a0650d236e0.zip
Diffstat (limited to 'source/cRoot.h')
-rw-r--r--source/cRoot.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/source/cRoot.h b/source/cRoot.h
index 95f2e236e..86b6ac28a 100644
--- a/source/cRoot.h
+++ b/source/cRoot.h
@@ -21,7 +21,9 @@ public:
void Start();
cServer* GetServer() { return m_Server; } //tolua_export
- cWorld* GetWorld() { return m_World; } //tolua_export
+ cWorld* GetWorld(); //tolua_export
+ cWorld* GetDefaultWorld(); //tolua_export
+ cWorld* GetWorld( const char* a_WorldName ); //tolua_export
cMonsterConfig *GetMonsterConfig() { return m_MonsterConfig;}
cGroupManager* GetGroupManager() { return m_GroupManager; } //tolua_export
@@ -31,9 +33,13 @@ public:
cPluginManager* GetPluginManager() { return m_PluginManager; } //tolua_export
void ServerCommand( const char* a_Cmd ); //tolua_export
+
+ void TickWorlds( float a_Dt );
private:
+ void LoadWorlds();
+ void UnloadWorlds();
+
cServer* m_Server;
- cWorld* m_World;
cMonsterConfig *m_MonsterConfig;
cGroupManager* m_GroupManager;
@@ -47,6 +53,9 @@ private:
bool m_bStop;
bool m_bRestart;
+ struct sRootState;
+ sRootState* m_pState;
+
cThread* m_InputThread;
static void InputThread(void* a_Params);