diff options
author | madmaxoft <github@xoft.cz> | 2013-09-15 21:53:36 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-09-15 21:53:36 +0200 |
commit | 5514a6169fa1bd35e392ad653ce739a1573dc955 (patch) | |
tree | 5e91feca51a0c45ee777fc27a08bfe9892132dc0 /source | |
parent | Fixed previous commit. (diff) | |
download | cuberite-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')
-rw-r--r-- | source/Bindings.cpp | 60 | ||||
-rw-r--r-- | source/Bindings.h | 2 | ||||
-rw-r--r-- | source/World.h | 13 |
3 files changed, 5 insertions, 70 deletions
diff --git a/source/Bindings.cpp b/source/Bindings.cpp index 107bacfc3..1ca00d41c 100644 --- a/source/Bindings.cpp +++ b/source/Bindings.cpp @@ -1,6 +1,6 @@ /* ** Lua binding: AllToLua -** Generated automatically by tolua++-1.0.92 on 09/15/13 21:24:51. +** Generated automatically by tolua++-1.0.92 on 09/15/13 21:52:06. */ #ifndef __cplusplus @@ -11006,62 +11006,6 @@ static int tolua_AllToLua_cServer_GetServerID00(lua_State* tolua_S) } #endif //#ifndef TOLUA_DISABLE -/* method: GetClassStatic of class cWorld */ -#ifndef TOLUA_DISABLE_tolua_AllToLua_cWorld_GetClassStatic00 -static int tolua_AllToLua_cWorld_GetClassStatic00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertable(tolua_S,1,"cWorld",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - { - const char* tolua_ret = (const char*) cWorld::GetClassStatic(); - tolua_pushstring(tolua_S,(const char*)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'GetClassStatic'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: GetTime of class cWorld */ -#ifndef TOLUA_DISABLE_tolua_AllToLua_cWorld_GetTime00 -static int tolua_AllToLua_cWorld_GetTime00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertable(tolua_S,1,"cWorld",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - { - float tolua_ret = (float) cWorld::GetTime(); - tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE - tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'GetTime'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - /* method: GetTicksUntilWeatherChange of class cWorld */ #ifndef TOLUA_DISABLE_tolua_AllToLua_cWorld_GetTicksUntilWeatherChange00 static int tolua_AllToLua_cWorld_GetTicksUntilWeatherChange00(lua_State* tolua_S) @@ -29900,8 +29844,6 @@ TOLUA_API int tolua_AllToLua_open (lua_State* tolua_S) tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"cWorld","cWorld","",NULL); tolua_beginmodule(tolua_S,"cWorld"); - tolua_function(tolua_S,"GetClassStatic",tolua_AllToLua_cWorld_GetClassStatic00); - tolua_function(tolua_S,"GetTime",tolua_AllToLua_cWorld_GetTime00); tolua_function(tolua_S,"GetTicksUntilWeatherChange",tolua_AllToLua_cWorld_GetTicksUntilWeatherChange00); tolua_function(tolua_S,"GetWorldAge",tolua_AllToLua_cWorld_GetWorldAge00); tolua_function(tolua_S,"GetTimeOfDay",tolua_AllToLua_cWorld_GetTimeOfDay00); diff --git a/source/Bindings.h b/source/Bindings.h index d5a267b1e..880669d3c 100644 --- a/source/Bindings.h +++ b/source/Bindings.h @@ -1,6 +1,6 @@ /*
** Lua binding: AllToLua
-** Generated automatically by tolua++-1.0.92 on 09/15/13 21:24:52.
+** Generated automatically by tolua++-1.0.92 on 09/15/13 21:52:06.
*/
/* Exported function */
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; }
|