From 9cef5838a8d449776a1c21be3799971ff6350134 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 12 Jun 2013 12:30:47 +0000 Subject: ChestEntity: fixed bindings git-svn-id: http://mc-server.googlecode.com/svn/trunk@1584 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Bindings.cpp | 20 +------------------- source/Bindings.h | 2 +- source/BlockEntities/ChestEntity.h | 8 ++++---- 3 files changed, 6 insertions(+), 24 deletions(-) (limited to 'source') diff --git a/source/Bindings.cpp b/source/Bindings.cpp index a8f600dc7..02f8ce325 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/12/13 10:17:24. +** Generated automatically by tolua++-1.0.92 on 06/12/13 14:28:57. */ #ifndef __cplusplus @@ -16665,23 +16665,6 @@ static int tolua_AllToLua_cChestEntity_new00_local(lua_State* tolua_S) } #endif //#ifndef TOLUA_DISABLE -/* get function: __cBlockEntityWindowOwner__ of class cChestEntity */ -#ifndef TOLUA_DISABLE_tolua_get_cChestEntity___cBlockEntityWindowOwner__ -static int tolua_get_cChestEntity___cBlockEntityWindowOwner__(lua_State* tolua_S) -{ - cChestEntity* self = (cChestEntity*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable '__cBlockEntityWindowOwner__'",NULL); -#endif -#ifdef __cplusplus - tolua_pushusertype(tolua_S,(void*)static_cast(self), "cBlockEntityWindowOwner"); -#else - tolua_pushusertype(tolua_S,(void*)((cBlockEntityWindowOwner*)self), "cBlockEntityWindowOwner"); -#endif - return 1; -} -#endif //#ifndef TOLUA_DISABLE - /* method: AddDropSpenserDir of class cDropSpenserEntity */ #ifndef TOLUA_DISABLE_tolua_AllToLua_cDropSpenserEntity_AddDropSpenserDir00 static int tolua_AllToLua_cDropSpenserEntity_AddDropSpenserDir00(lua_State* tolua_S) @@ -27770,7 +27753,6 @@ TOLUA_API int tolua_AllToLua_open (lua_State* tolua_S) tolua_function(tolua_S,"new",tolua_AllToLua_cChestEntity_new00); tolua_function(tolua_S,"new_local",tolua_AllToLua_cChestEntity_new00_local); tolua_function(tolua_S,".call",tolua_AllToLua_cChestEntity_new00_local); - tolua_variable(tolua_S,"__cBlockEntityWindowOwner__",tolua_get_cChestEntity___cBlockEntityWindowOwner__,NULL); tolua_endmodule(tolua_S); tolua_cclass(tolua_S,"cDropSpenserEntity","cDropSpenserEntity","cBlockEntityWithItems",NULL); tolua_beginmodule(tolua_S,"cDropSpenserEntity"); diff --git a/source/Bindings.h b/source/Bindings.h index 348b087aa..ec7581add 100644 --- a/source/Bindings.h +++ b/source/Bindings.h @@ -1,6 +1,6 @@ /* ** Lua binding: AllToLua -** Generated automatically by tolua++-1.0.92 on 06/12/13 10:17:24. +** Generated automatically by tolua++-1.0.92 on 06/12/13 14:28:57. */ /* Exported function */ diff --git a/source/BlockEntities/ChestEntity.h b/source/BlockEntities/ChestEntity.h index 03cd5a943..86cb618d5 100644 --- a/source/BlockEntities/ChestEntity.h +++ b/source/BlockEntities/ChestEntity.h @@ -21,10 +21,10 @@ class cNBTData; -// tolua_begin -class cChestEntity : - public cBlockEntityWithItems, - public cBlockEntityWindowOwner +class cChestEntity : // tolua_export + public cBlockEntityWindowOwner, + // tolua_begin + public cBlockEntityWithItems { typedef cBlockEntityWithItems super; -- cgit v1.2.3