Fixed previous commit
This commit is contained in:
parent
530f6f2b71
commit
4aa14c0264
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
** Lua binding: AllToLua
|
** Lua binding: AllToLua
|
||||||
** Generated automatically by tolua++-1.0.92 on 09/15/13 21:52:06.
|
** Generated automatically by tolua++-1.0.92 on 09/15/13 22:09:07.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
@ -11168,39 +11168,6 @@ static int tolua_AllToLua_cWorld_SetTimeOfDay00(lua_State* tolua_S)
|
|||||||
}
|
}
|
||||||
#endif //#ifndef TOLUA_DISABLE
|
#endif //#ifndef TOLUA_DISABLE
|
||||||
|
|
||||||
/* method: SetWorldTime of class cWorld */
|
|
||||||
#ifndef TOLUA_DISABLE_tolua_AllToLua_cWorld_SetWorldTime00
|
|
||||||
static int tolua_AllToLua_cWorld_SetWorldTime00(lua_State* tolua_S)
|
|
||||||
{
|
|
||||||
#ifndef TOLUA_RELEASE
|
|
||||||
tolua_Error tolua_err;
|
|
||||||
if (
|
|
||||||
!tolua_isusertype(tolua_S,1,"cWorld",0,&tolua_err) ||
|
|
||||||
!tolua_isnumber(tolua_S,2,0,&tolua_err) ||
|
|
||||||
!tolua_isnoobj(tolua_S,3,&tolua_err)
|
|
||||||
)
|
|
||||||
goto tolua_lerror;
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
cWorld* self = (cWorld*) tolua_tousertype(tolua_S,1,0);
|
|
||||||
long long a_TimeOfDay = (( long long) tolua_tonumber(tolua_S,2,0));
|
|
||||||
#ifndef TOLUA_RELEASE
|
|
||||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'SetWorldTime'", NULL);
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
self->SetWorldTime(a_TimeOfDay);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
#ifndef TOLUA_RELEASE
|
|
||||||
tolua_lerror:
|
|
||||||
tolua_error(tolua_S,"#ferror in function 'SetWorldTime'.",&tolua_err);
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
#endif //#ifndef TOLUA_DISABLE
|
|
||||||
|
|
||||||
/* method: GetGameMode of class cWorld */
|
/* method: GetGameMode of class cWorld */
|
||||||
#ifndef TOLUA_DISABLE_tolua_AllToLua_cWorld_GetGameMode00
|
#ifndef TOLUA_DISABLE_tolua_AllToLua_cWorld_GetGameMode00
|
||||||
static int tolua_AllToLua_cWorld_GetGameMode00(lua_State* tolua_S)
|
static int tolua_AllToLua_cWorld_GetGameMode00(lua_State* tolua_S)
|
||||||
@ -12641,7 +12608,7 @@ static int tolua_AllToLua_cWorld_GrowTreeFromSapling00(lua_State* tolua_S)
|
|||||||
int a_BlockX = ((int) tolua_tonumber(tolua_S,2,0));
|
int a_BlockX = ((int) tolua_tonumber(tolua_S,2,0));
|
||||||
int a_BlockY = ((int) tolua_tonumber(tolua_S,3,0));
|
int a_BlockY = ((int) tolua_tonumber(tolua_S,3,0));
|
||||||
int a_BlockZ = ((int) tolua_tonumber(tolua_S,4,0));
|
int a_BlockZ = ((int) tolua_tonumber(tolua_S,4,0));
|
||||||
char a_SaplingMeta = ((char) tolua_tonumber(tolua_S,5,0));
|
unsigned char a_SaplingMeta = (( unsigned char) tolua_tonumber(tolua_S,5,0));
|
||||||
#ifndef TOLUA_RELEASE
|
#ifndef TOLUA_RELEASE
|
||||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GrowTreeFromSapling'", NULL);
|
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GrowTreeFromSapling'", NULL);
|
||||||
#endif
|
#endif
|
||||||
@ -12796,7 +12763,7 @@ static int tolua_AllToLua_cWorld_GrowMelonPumpkin00(lua_State* tolua_S)
|
|||||||
int a_BlockX = ((int) tolua_tonumber(tolua_S,2,0));
|
int a_BlockX = ((int) tolua_tonumber(tolua_S,2,0));
|
||||||
int a_BlockY = ((int) tolua_tonumber(tolua_S,3,0));
|
int a_BlockY = ((int) tolua_tonumber(tolua_S,3,0));
|
||||||
int a_BlockZ = ((int) tolua_tonumber(tolua_S,4,0));
|
int a_BlockZ = ((int) tolua_tonumber(tolua_S,4,0));
|
||||||
char a_BlockType = ((char) tolua_tonumber(tolua_S,5,0));
|
unsigned char a_BlockType = (( unsigned char) tolua_tonumber(tolua_S,5,0));
|
||||||
#ifndef TOLUA_RELEASE
|
#ifndef TOLUA_RELEASE
|
||||||
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GrowMelonPumpkin'", NULL);
|
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GrowMelonPumpkin'", NULL);
|
||||||
#endif
|
#endif
|
||||||
@ -29849,7 +29816,6 @@ TOLUA_API int tolua_AllToLua_open (lua_State* tolua_S)
|
|||||||
tolua_function(tolua_S,"GetTimeOfDay",tolua_AllToLua_cWorld_GetTimeOfDay00);
|
tolua_function(tolua_S,"GetTimeOfDay",tolua_AllToLua_cWorld_GetTimeOfDay00);
|
||||||
tolua_function(tolua_S,"SetTicksUntilWeatherChange",tolua_AllToLua_cWorld_SetTicksUntilWeatherChange00);
|
tolua_function(tolua_S,"SetTicksUntilWeatherChange",tolua_AllToLua_cWorld_SetTicksUntilWeatherChange00);
|
||||||
tolua_function(tolua_S,"SetTimeOfDay",tolua_AllToLua_cWorld_SetTimeOfDay00);
|
tolua_function(tolua_S,"SetTimeOfDay",tolua_AllToLua_cWorld_SetTimeOfDay00);
|
||||||
tolua_function(tolua_S,"SetWorldTime",tolua_AllToLua_cWorld_SetWorldTime00);
|
|
||||||
tolua_function(tolua_S,"GetGameMode",tolua_AllToLua_cWorld_GetGameMode00);
|
tolua_function(tolua_S,"GetGameMode",tolua_AllToLua_cWorld_GetGameMode00);
|
||||||
tolua_function(tolua_S,"IsGameModeCreative",tolua_AllToLua_cWorld_IsGameModeCreative00);
|
tolua_function(tolua_S,"IsGameModeCreative",tolua_AllToLua_cWorld_IsGameModeCreative00);
|
||||||
tolua_function(tolua_S,"IsGameModeSurvival",tolua_AllToLua_cWorld_IsGameModeSurvival00);
|
tolua_function(tolua_S,"IsGameModeSurvival",tolua_AllToLua_cWorld_IsGameModeSurvival00);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
** Lua binding: AllToLua
|
** Lua binding: AllToLua
|
||||||
** Generated automatically by tolua++-1.0.92 on 09/15/13 21:52:06.
|
** Generated automatically by tolua++-1.0.92 on 09/15/13 22:09:07.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Exported function */
|
/* Exported function */
|
||||||
|
Loading…
Reference in New Issue
Block a user