diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-02 15:54:33 +0200 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-02 15:54:33 +0200 |
commit | f075bed23c9a00e8e73f4580360d0c8900a3cfc7 (patch) | |
tree | af01ac76821fc65724e493969e57a568d7464676 /source | |
parent | Exported cWorld::DoWithChestAt to Lua (diff) | |
download | cuberite-f075bed23c9a00e8e73f4580360d0c8900a3cfc7.tar cuberite-f075bed23c9a00e8e73f4580360d0c8900a3cfc7.tar.gz cuberite-f075bed23c9a00e8e73f4580360d0c8900a3cfc7.tar.bz2 cuberite-f075bed23c9a00e8e73f4580360d0c8900a3cfc7.tar.lz cuberite-f075bed23c9a00e8e73f4580360d0c8900a3cfc7.tar.xz cuberite-f075bed23c9a00e8e73f4580360d0c8900a3cfc7.tar.zst cuberite-f075bed23c9a00e8e73f4580360d0c8900a3cfc7.zip |
Diffstat (limited to 'source')
-rw-r--r-- | source/Bindings.cpp | 56 | ||||
-rw-r--r-- | source/Bindings.h | 2 | ||||
-rw-r--r-- | source/cChestEntity.h | 2 |
3 files changed, 14 insertions, 46 deletions
diff --git a/source/Bindings.cpp b/source/Bindings.cpp index ed738a412..c77abd5da 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/02/12 15:32:35. +** Generated automatically by tolua++-1.0.92 on 09/02/12 15:53:59. */ #ifndef __cplusplus @@ -167,29 +167,28 @@ static void tolua_reg_types (lua_State* tolua_S) tolua_usertype(tolua_S,"cCraftingRecipe"); tolua_usertype(tolua_S,"cPlugin_NewLua"); tolua_usertype(tolua_S,"cStringMap"); - tolua_usertype(tolua_S,"cLuaItems"); tolua_usertype(tolua_S,"cBlockArea"); + tolua_usertype(tolua_S,"cLuaItems"); tolua_usertype(tolua_S,"cCraftingGrid"); - tolua_usertype(tolua_S,"Lua__cTCPLink"); tolua_usertype(tolua_S,"cServer"); tolua_usertype(tolua_S,"cRoot"); + tolua_usertype(tolua_S,"cTCPLink"); tolua_usertype(tolua_S,"cGroup"); tolua_usertype(tolua_S,"cTracer"); - tolua_usertype(tolua_S,"cMCLogger"); tolua_usertype(tolua_S,"cPlugin::CommandStruct"); tolua_usertype(tolua_S,"cPickup"); tolua_usertype(tolua_S,"cItems"); - tolua_usertype(tolua_S,"cCuboid"); + tolua_usertype(tolua_S,"cMCLogger"); tolua_usertype(tolua_S,"cClientHandle"); - tolua_usertype(tolua_S,"Vector3i"); + tolua_usertype(tolua_S,"cCuboid"); tolua_usertype(tolua_S,"cFurnaceRecipe"); - tolua_usertype(tolua_S,"cStairs"); + tolua_usertype(tolua_S,"Vector3i"); tolua_usertype(tolua_S,"cChatColor"); - tolua_usertype(tolua_S,"Lua__cPickup"); + tolua_usertype(tolua_S,"cStairs"); tolua_usertype(tolua_S,"cLuaChunk"); tolua_usertype(tolua_S,"Lua__cWebPlugin"); tolua_usertype(tolua_S,"Lua__cPawn"); - tolua_usertype(tolua_S,"cTCPLink"); + tolua_usertype(tolua_S,"Lua__cTCPLink"); tolua_usertype(tolua_S,"cItem"); tolua_usertype(tolua_S,"Vector3f"); tolua_usertype(tolua_S,"cPlugin_Lua"); @@ -198,15 +197,15 @@ static void tolua_reg_types (lua_State* tolua_S) tolua_usertype(tolua_S,"cGroupManager"); tolua_usertype(tolua_S,"cChestEntity"); tolua_usertype(tolua_S,"cWebAdmin"); - tolua_usertype(tolua_S,"cWebPlugin"); + tolua_usertype(tolua_S,"Lua__cPickup"); tolua_usertype(tolua_S,"cBlockEntity"); + tolua_usertype(tolua_S,"cWebPlugin"); tolua_usertype(tolua_S,"cEntity"); - tolua_usertype(tolua_S,"HTTPFormData"); tolua_usertype(tolua_S,"Lua__cPlugin"); - tolua_usertype(tolua_S,"cWorld"); + tolua_usertype(tolua_S,"HTTPFormData"); tolua_usertype(tolua_S,"cPluginManager"); tolua_usertype(tolua_S,"cLadder"); - tolua_usertype(tolua_S,"override"); + tolua_usertype(tolua_S,"cWorld"); tolua_usertype(tolua_S,"Lua__cPlayer"); tolua_usertype(tolua_S,"cIniFile"); tolua_usertype(tolua_S,"cPlugin"); @@ -13439,36 +13438,6 @@ static int tolua_AllToLua_cChestEntity_UsedBy00(lua_State* tolua_S) } #endif //#ifndef TOLUA_DISABLE -/* get function: tolua_var_2 of class cChestEntity */ -#ifndef TOLUA_DISABLE_tolua_get_cChestEntity_override -static int tolua_get_cChestEntity_override(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 'tolua_var_2'",NULL); -#endif - tolua_pushusertype(tolua_S,(void*)&self->tolua_var_2,"override"); - return 1; -} -#endif //#ifndef TOLUA_DISABLE - -/* set function: tolua_var_2 of class cChestEntity */ -#ifndef TOLUA_DISABLE_tolua_set_cChestEntity_override -static int tolua_set_cChestEntity_override(lua_State* tolua_S) -{ - cChestEntity* self = (cChestEntity*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'tolua_var_2'",NULL); - if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"override",0,&tolua_err))) - tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err); -#endif - self->tolua_var_2 = *((override*) tolua_tousertype(tolua_S,2,0)) -; - return 0; -} -#endif //#ifndef TOLUA_DISABLE - /* method: GetChestHeight of class cChestEntity */ #ifndef TOLUA_DISABLE_tolua_AllToLua_cChestEntity_GetChestHeight00 static int tolua_AllToLua_cChestEntity_GetChestHeight00(lua_State* tolua_S) @@ -21842,7 +21811,6 @@ TOLUA_API int tolua_AllToLua_open (lua_State* tolua_S) tolua_function(tolua_S,"GetSlot",tolua_AllToLua_cChestEntity_GetSlot00); tolua_function(tolua_S,"SetSlot",tolua_AllToLua_cChestEntity_SetSlot00); tolua_function(tolua_S,"UsedBy",tolua_AllToLua_cChestEntity_UsedBy00); - tolua_variable(tolua_S,"override",tolua_get_cChestEntity_override,tolua_set_cChestEntity_override); tolua_function(tolua_S,"GetChestHeight",tolua_AllToLua_cChestEntity_GetChestHeight00); tolua_variable(tolua_S,"__cBlockEntityWindowOwner__",tolua_get_cChestEntity___cBlockEntityWindowOwner__,NULL); tolua_endmodule(tolua_S); diff --git a/source/Bindings.h b/source/Bindings.h index 635019a6a..b6d879e29 100644 --- a/source/Bindings.h +++ b/source/Bindings.h @@ -1,6 +1,6 @@ /* ** Lua binding: AllToLua -** Generated automatically by tolua++-1.0.92 on 09/02/12 15:32:36. +** Generated automatically by tolua++-1.0.92 on 09/02/12 15:53:59. */ /* Exported function */ diff --git a/source/cChestEntity.h b/source/cChestEntity.h index b129bf429..1e186dc9c 100644 --- a/source/cChestEntity.h +++ b/source/cChestEntity.h @@ -41,7 +41,7 @@ public: virtual void SendTo(cClientHandle & a_Client) override; - virtual void UsedBy( cPlayer * a_Player ) override; //tolua_export + virtual void UsedBy( cPlayer * a_Player ); //tolua_export cChestEntity * GetJoinedChest() { return m_JoinedChest; } // NOTE: Is this a safe function? Should it be exported to Lua? void SetJoinedChest(cChestEntity *a_Chest) { m_JoinedChest = a_Chest; } |