From 0d8ecbeca1a93acab395326db3e90f444c8bbc18 Mon Sep 17 00:00:00 2001 From: faketruth Date: Mon, 26 Dec 2011 23:23:05 +0000 Subject: Some kind of 'template' world generator that right now just generates an all dirt world. You can use this to test new algorithms git-svn-id: http://mc-server.googlecode.com/svn/trunk@127 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWorld.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/cWorld.h') 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; -- cgit v1.2.3