summaryrefslogtreecommitdiffstats
path: root/source/World.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-15 21:53:36 +0200
committermadmaxoft <github@xoft.cz>2013-09-15 21:53:36 +0200
commit5514a6169fa1bd35e392ad653ce739a1573dc955 (patch)
tree5e91feca51a0c45ee777fc27a08bfe9892132dc0 /source/World.h
parentFixed previous commit. (diff)
downloadcuberite-5514a6169fa1bd35e392ad653ce739a1573dc955.tar
cuberite-5514a6169fa1bd35e392ad653ce739a1573dc955.tar.gz
cuberite-5514a6169fa1bd35e392ad653ce739a1573dc955.tar.bz2
cuberite-5514a6169fa1bd35e392ad653ce739a1573dc955.tar.lz
cuberite-5514a6169fa1bd35e392ad653ce739a1573dc955.tar.xz
cuberite-5514a6169fa1bd35e392ad653ce739a1573dc955.tar.zst
cuberite-5514a6169fa1bd35e392ad653ce739a1573dc955.zip
Diffstat (limited to 'source/World.h')
-rw-r--r--source/World.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/source/World.h b/source/World.h
index 7ed0e57a3..0e65cfa39 100644
--- a/source/World.h
+++ b/source/World.h
@@ -90,20 +90,13 @@ public:
} ;
- // tolua_begin
-
- static const char * GetClassStatic(void)
+ static const char * GetClassStatic(void) // Needed for ManualBindings's ForEach templates
{
return "cWorld";
}
- /// Return time in seconds
- inline static float GetTime(void)
- {
- LOGWARNING("cWorld:GetTime() is obsolete, use GetWorldAge() or GetTimeOfDay() for a specific world instead.");
- return 0;
- }
-
+ // tolua_begin
+
int GetTicksUntilWeatherChange(void) const { return m_WeatherInterval; }
Int64 GetWorldAge(void) const { return m_WorldAge; }
Int64 GetTimeOfDay(void) const { return m_TimeOfDay; }