diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-10 21:46:12 +0200 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-10 21:46:12 +0200 |
commit | ae5975e674122148f979a211bcf82094c5d0a206 (patch) | |
tree | b94884f7a00ac9e820d27d5213996ad6cf176b7e /source/World.h | |
parent | Removed some logging (diff) | |
download | cuberite-ae5975e674122148f979a211bcf82094c5d0a206.tar cuberite-ae5975e674122148f979a211bcf82094c5d0a206.tar.gz cuberite-ae5975e674122148f979a211bcf82094c5d0a206.tar.bz2 cuberite-ae5975e674122148f979a211bcf82094c5d0a206.tar.lz cuberite-ae5975e674122148f979a211bcf82094c5d0a206.tar.xz cuberite-ae5975e674122148f979a211bcf82094c5d0a206.tar.zst cuberite-ae5975e674122148f979a211bcf82094c5d0a206.zip |
Diffstat (limited to '')
-rw-r--r-- | source/World.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/World.h b/source/World.h index 0fb2bac7c..654460737 100644 --- a/source/World.h +++ b/source/World.h @@ -68,6 +68,7 @@ public: long long GetWorldTime(void) const { return m_WorldTime; } //tolua_export eGameMode GetGameMode(void) const { return m_GameMode; } //tolua_export + bool IsPVPEnabled(void) const { return m_bEnabledPVP; } //tolua_export void SetWorldTime(long long a_WorldTime) { m_WorldTime = a_WorldTime; } //tolua_export @@ -416,6 +417,7 @@ private: long long m_WorldTime; // Time in seconds*20, this is sent to clients (is wrapped) unsigned long long CurrentTick; eGameMode m_GameMode; + bool m_bEnabledPVP; float m_WorldTimeFraction; // When this > 1.f m_WorldTime is incremented by 20 // The cRedstone class simulates redstone and needs access to m_RSList |