diff options
author | nielsbreu@gmail.com <nielsbreu@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-15 20:09:54 +0200 |
---|---|---|
committer | nielsbreu@gmail.com <nielsbreu@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-15 20:09:54 +0200 |
commit | 07a1ffb499df60354d1c3abd9a5aba7f6427bb41 (patch) | |
tree | 57a8c4b8eb14ded322c4beefc818af89353f2d96 /source | |
parent | You can only sleep when the time is day, and beds explode if the dimension is not Overworld. (diff) | |
download | cuberite-07a1ffb499df60354d1c3abd9a5aba7f6427bb41.tar cuberite-07a1ffb499df60354d1c3abd9a5aba7f6427bb41.tar.gz cuberite-07a1ffb499df60354d1c3abd9a5aba7f6427bb41.tar.bz2 cuberite-07a1ffb499df60354d1c3abd9a5aba7f6427bb41.tar.lz cuberite-07a1ffb499df60354d1c3abd9a5aba7f6427bb41.tar.xz cuberite-07a1ffb499df60354d1c3abd9a5aba7f6427bb41.tar.zst cuberite-07a1ffb499df60354d1c3abd9a5aba7f6427bb41.zip |
Diffstat (limited to 'source')
-rw-r--r-- | source/Bindings.cpp | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/source/Bindings.cpp b/source/Bindings.cpp index 60d83b670..7f992c6bd 100644 --- a/source/Bindings.cpp +++ b/source/Bindings.cpp @@ -1,6 +1,6 @@ /* ** Lua binding: AllToLua -** Generated automatically by tolua++-1.0.92 on 06/13/13 08:12:33. +** Generated automatically by tolua++-1.0.92 on 06/15/13 20:05:13. */ #ifndef __cplusplus @@ -4009,6 +4009,38 @@ static int tolua_AllToLua_cEntity_IsMinecart00(lua_State* tolua_S) } #endif //#ifndef TOLUA_DISABLE +/* method: IsTNT of class cEntity */ +#ifndef TOLUA_DISABLE_tolua_AllToLua_cEntity_IsTNT00 +static int tolua_AllToLua_cEntity_IsTNT00(lua_State* tolua_S) +{ +#ifndef TOLUA_RELEASE + tolua_Error tolua_err; + if ( + !tolua_isusertype(tolua_S,1,"const cEntity",0,&tolua_err) || + !tolua_isnoobj(tolua_S,2,&tolua_err) + ) + goto tolua_lerror; + else +#endif + { + const cEntity* self = (const cEntity*) tolua_tousertype(tolua_S,1,0); +#ifndef TOLUA_RELEASE + if (!self) tolua_error(tolua_S,"invalid 'self' in function 'IsTNT'", NULL); +#endif + { + bool tolua_ret = (bool) self->IsTNT(); + tolua_pushboolean(tolua_S,(bool)tolua_ret); + } + } + return 1; +#ifndef TOLUA_RELEASE + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'IsTNT'.",&tolua_err); + return 0; +#endif +} +#endif //#ifndef TOLUA_DISABLE + /* method: IsA of class cEntity */ #ifndef TOLUA_DISABLE_tolua_AllToLua_cEntity_IsA00 static int tolua_AllToLua_cEntity_IsA00(lua_State* tolua_S) @@ -27271,6 +27303,7 @@ TOLUA_API int tolua_AllToLua_open (lua_State* tolua_S) tolua_function(tolua_S,"IsPickup",tolua_AllToLua_cEntity_IsPickup00); tolua_function(tolua_S,"IsMob",tolua_AllToLua_cEntity_IsMob00); tolua_function(tolua_S,"IsMinecart",tolua_AllToLua_cEntity_IsMinecart00); + tolua_function(tolua_S,"IsTNT",tolua_AllToLua_cEntity_IsTNT00); tolua_function(tolua_S,"IsA",tolua_AllToLua_cEntity_IsA00); tolua_function(tolua_S,"GetClass",tolua_AllToLua_cEntity_GetClass00); tolua_function(tolua_S,"GetClassStatic",tolua_AllToLua_cEntity_GetClassStatic00); |