diff options
author | madmaxoft <github@xoft.cz> | 2013-09-15 00:13:45 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-09-15 00:14:03 +0200 |
commit | 37b3b5defb3ca62a4805f2989707db63609e6cdc (patch) | |
tree | be05bff0b74773929fcfba1b8d1429e836fbf849 /source/Bindings.cpp | |
parent | Added a script that uploads the APIDump's docs to a website. (diff) | |
download | cuberite-37b3b5defb3ca62a4805f2989707db63609e6cdc.tar cuberite-37b3b5defb3ca62a4805f2989707db63609e6cdc.tar.gz cuberite-37b3b5defb3ca62a4805f2989707db63609e6cdc.tar.bz2 cuberite-37b3b5defb3ca62a4805f2989707db63609e6cdc.tar.lz cuberite-37b3b5defb3ca62a4805f2989707db63609e6cdc.tar.xz cuberite-37b3b5defb3ca62a4805f2989707db63609e6cdc.tar.zst cuberite-37b3b5defb3ca62a4805f2989707db63609e6cdc.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Bindings.cpp | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/source/Bindings.cpp b/source/Bindings.cpp index 35b32d5cb..49c103d42 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/07/13 22:05:18. +** Generated automatically by tolua++-1.0.92 on 09/15/13 00:13:18. */ #ifndef __cplusplus @@ -4728,6 +4728,38 @@ static int tolua_AllToLua_cEntity_IsMinecart00(lua_State* tolua_S) } #endif //#ifndef TOLUA_DISABLE +/* method: IsBoat of class cEntity */ +#ifndef TOLUA_DISABLE_tolua_AllToLua_cEntity_IsBoat00 +static int tolua_AllToLua_cEntity_IsBoat00(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 'IsBoat'", NULL); +#endif + { + bool tolua_ret = (bool) self->IsBoat(); + tolua_pushboolean(tolua_S,(bool)tolua_ret); + } + } + return 1; +#ifndef TOLUA_RELEASE + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'IsBoat'.",&tolua_err); + return 0; +#endif +} +#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) @@ -29652,6 +29684,7 @@ TOLUA_API int tolua_AllToLua_open (lua_State* tolua_S) tolua_constant(tolua_S,"etMonster",cEntity::etMonster); tolua_constant(tolua_S,"etFallingBlock",cEntity::etFallingBlock); tolua_constant(tolua_S,"etMinecart",cEntity::etMinecart); + tolua_constant(tolua_S,"etBoat",cEntity::etBoat); tolua_constant(tolua_S,"etTNT",cEntity::etTNT); tolua_constant(tolua_S,"etProjectile",cEntity::etProjectile); tolua_constant(tolua_S,"etMob",cEntity::etMob); @@ -29664,6 +29697,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,"IsBoat",tolua_AllToLua_cEntity_IsBoat00); 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); |