From d2573b84dd52c06c723953ef66da4af8937a5a53 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 11 Mar 2013 17:15:34 +0000 Subject: Initial nether composition generator git-svn-id: http://mc-server.googlecode.com/svn/trunk@1266 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/World.h | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'source/World.h') diff --git a/source/World.h b/source/World.h index 781dc3e8c..2e8572b00 100644 --- a/source/World.h +++ b/source/World.h @@ -54,12 +54,17 @@ typedef cItemCallback cFurnaceCallback; - -class cWorld // tolua_export -{ // tolua_export +// tolua_begin +class cWorld +{ public: - // tolua_begin + enum eDimension + { + dimNether = -1, + dimOverworld = 0, + dimEnd = 1, + } ; static const char * GetClassStatic(void) { @@ -92,6 +97,8 @@ public: eGameMode GetGameMode(void) const { return m_GameMode; } bool IsPVPEnabled(void) const { return m_bEnabledPVP; } bool IsDeepSnowEnabled(void) const { return m_IsDeepSnowEnabled; } + + eDimension GetDimension(void) const { return m_Dimension; } int GetHeight(int a_BlockX, int a_BlockZ); @@ -459,7 +466,10 @@ private: friend class cRoot; - // This random generator is to be used only in the Tick() method, and thus only in the World-Tick-thread (MTRand is not exactly thread-safe) + /// The dimension of the world, used by the client to provide correct lighting scheme + eDimension m_Dimension; + + /// This random generator is to be used only in the Tick() method, and thus only in the World-Tick-thread (MTRand is not exactly thread-safe) MTRand m_TickRand; double m_SpawnX; -- cgit v1.2.3