summaryrefslogtreecommitdiffstats
path: root/source/cWorld.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cWorld.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/cWorld.h b/source/cWorld.h
index 0b2f8ec85..74f8ae8e8 100644
--- a/source/cWorld.h
+++ b/source/cWorld.h
@@ -33,6 +33,9 @@ public:
return m_Time;
}
long long GetWorldTime() { return m_WorldTime; } //tolua_export
+
+ int GetGameMode() { return m_GameMode; } //return gamemode for world
+
void SetWorldTime(long long a_WorldTime) { m_WorldTime = a_WorldTime; } //tolua_export
cChunk* GetChunk( int a_X, int a_Y, int a_Z );
@@ -136,6 +139,7 @@ private:
float m_LastSave;
static float m_Time; // Time in seconds
long long m_WorldTime; // Time in seconds*20, this is sent to clients (is wrapped)
+ int m_GameMode;
float m_WorldTimeFraction; // When this > 1.f m_WorldTime is incremented by 20
cWaterSimulator* m_WaterSimulator;