diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-27 00:23:05 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-27 00:23:05 +0100 |
commit | 0d8ecbeca1a93acab395326db3e90f444c8bbc18 (patch) | |
tree | 529ef281ab20829534f272157edede9d7cb087d4 /source/cWorld.h | |
parent | Players can switch worlds on the fly with the command /gotoworld [worldName]. This uses the function cPlayer::MoveToWorld() (diff) | |
download | cuberite-0d8ecbeca1a93acab395326db3e90f444c8bbc18.tar cuberite-0d8ecbeca1a93acab395326db3e90f444c8bbc18.tar.gz cuberite-0d8ecbeca1a93acab395326db3e90f444c8bbc18.tar.bz2 cuberite-0d8ecbeca1a93acab395326db3e90f444c8bbc18.tar.lz cuberite-0d8ecbeca1a93acab395326db3e90f444c8bbc18.tar.xz cuberite-0d8ecbeca1a93acab395326db3e90f444c8bbc18.tar.zst cuberite-0d8ecbeca1a93acab395326db3e90f444c8bbc18.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cWorld.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/cWorld.h b/source/cWorld.h index 44b89b5ab..72c6975d1 100644 --- a/source/cWorld.h +++ b/source/cWorld.h @@ -27,6 +27,7 @@ class cClientHandle; class cChunk;
class cEntity;
class cBlockEntity;
+class cWorldGenerator;
class cWorld //tolua_export
@@ -154,7 +155,7 @@ public: void SetWeather ( int ); //tolua_export
int GetWeather() { return m_Weather; }; //tolua_export
-
+ cWorldGenerator* GetWorldGenerator() { return m_WorldGenerator; }
private:
friend class cRoot;
cWorld( const char* a_WorldName );
@@ -184,10 +185,11 @@ private: cWaterSimulator* m_WaterSimulator;
cLavaSimulator* m_LavaSimulator;
-
cCriticalSection* m_ClientHandleCriticalSection;
cCriticalSection* m_EntitiesCriticalSection;
cCriticalSection* m_ChunksCriticalSection;
+
+ cWorldGenerator* m_WorldGenerator;
std::string m_Description;
unsigned int m_MaxPlayers;
|