static int Destroy(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); GameContent.ToLuaBridge obj = (GameContent.ToLuaBridge)ToLua.CheckObject <GameContent.ToLuaBridge>(L, 1); obj.Destroy(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _CreateGameContent_ToLuaBridge(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { GameContent.ToLuaBridge obj = new GameContent.ToLuaBridge(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: GameContent.ToLuaBridge.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }