From 5514a6169fa1bd35e392ad653ce739a1573dc955 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sun, 15 Sep 2013 21:53:36 +0200 Subject: Removed obsoleted cWorld functions from the API: GetClassStatic() (is used only internally by ManualBindings) GetTime() (is replaced with GetWorldAge() and GetTimeOfDay() --- source/World.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'source/World.h') 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; } -- cgit v1.2.3