diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-07-12 22:28:41 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-07-12 22:28:41 +0200 |
commit | 2fca0567bfcd7b62b8fcd05ff36a07d931e1ea9e (patch) | |
tree | 332aacfef1f1387b63b7306a0dcfcdbf80506085 /source/Bindings.cpp | |
parent | First implementation of movement-related hunger and API (diff) | |
download | cuberite-2fca0567bfcd7b62b8fcd05ff36a07d931e1ea9e.tar cuberite-2fca0567bfcd7b62b8fcd05ff36a07d931e1ea9e.tar.gz cuberite-2fca0567bfcd7b62b8fcd05ff36a07d931e1ea9e.tar.bz2 cuberite-2fca0567bfcd7b62b8fcd05ff36a07d931e1ea9e.tar.lz cuberite-2fca0567bfcd7b62b8fcd05ff36a07d931e1ea9e.tar.xz cuberite-2fca0567bfcd7b62b8fcd05ff36a07d931e1ea9e.tar.zst cuberite-2fca0567bfcd7b62b8fcd05ff36a07d931e1ea9e.zip |
Diffstat (limited to 'source/Bindings.cpp')
-rw-r--r-- | source/Bindings.cpp | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/source/Bindings.cpp b/source/Bindings.cpp index 9333c7d16..8963c9231 100644 --- a/source/Bindings.cpp +++ b/source/Bindings.cpp @@ -1,6 +1,6 @@ /* ** Lua binding: AllToLua -** Generated automatically by tolua++-1.0.92 on 07/09/13 09:51:25. +** Generated automatically by tolua++-1.0.92 on 07/12/13 22:26:52. */ #ifndef __cplusplus @@ -2561,6 +2561,36 @@ static int tolua_AllToLua_StringToBiome00(lua_State* tolua_S) } #endif //#ifndef TOLUA_DISABLE +/* function: StringToMobType */ +#ifndef TOLUA_DISABLE_tolua_AllToLua_StringToMobType00 +static int tolua_AllToLua_StringToMobType00(lua_State* tolua_S) +{ +#ifndef TOLUA_RELEASE + tolua_Error tolua_err; + if ( + !tolua_iscppstring(tolua_S,1,0,&tolua_err) || + !tolua_isnoobj(tolua_S,2,&tolua_err) + ) + goto tolua_lerror; + else +#endif + { + const AString a_MobString = ((const AString) tolua_tocppstring(tolua_S,1,0)); + { + int tolua_ret = (int) StringToMobType(a_MobString); + tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); + tolua_pushcppstring(tolua_S,(const char*)a_MobString); + } + } + return 2; +#ifndef TOLUA_RELEASE + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'StringToMobType'.",&tolua_err); + return 0; +#endif +} +#endif //#ifndef TOLUA_DISABLE + /* function: StringToDimension */ #ifndef TOLUA_DISABLE_tolua_AllToLua_StringToDimension00 static int tolua_AllToLua_StringToDimension00(lua_State* tolua_S) @@ -28538,6 +28568,7 @@ TOLUA_API int tolua_AllToLua_open (lua_State* tolua_S) tolua_function(tolua_S,"ItemTypeToString",tolua_AllToLua_ItemTypeToString00); tolua_function(tolua_S,"ItemToFullString",tolua_AllToLua_ItemToFullString00); tolua_function(tolua_S,"StringToBiome",tolua_AllToLua_StringToBiome00); + tolua_function(tolua_S,"StringToMobType",tolua_AllToLua_StringToMobType00); tolua_function(tolua_S,"StringToDimension",tolua_AllToLua_StringToDimension00); tolua_function(tolua_S,"DamageTypeToString",tolua_AllToLua_DamageTypeToString00); tolua_function(tolua_S,"StringToDamageType",tolua_AllToLua_StringToDamageType00); |