static int _m_DestroyWindow(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                KEngine.UI.UIModule gen_to_be_invoked = (KEngine.UI.UIModule)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    string _uiTemplateName   = LuaAPI.lua_tostring(L, 2);
                    bool   _destroyImmediate = LuaAPI.lua_toboolean(L, 3);

                    gen_to_be_invoked.DestroyWindow(_uiTemplateName, _destroyImmediate);



                    return(0);
                }
                if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    string _uiTemplateName = LuaAPI.lua_tostring(L, 2);

                    gen_to_be_invoked.DestroyWindow(_uiTemplateName);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to KEngine.UI.UIModule.DestroyWindow!"));
        }
Пример #2
0
        static int _m_DestroyWindow(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            KEngine.UI.UIModule __cl_gen_to_be_invoked = (KEngine.UI.UIModule)translator.FastGetCSObj(L, 1);


            try {
                {
                    string uiTemplateName = LuaAPI.lua_tostring(L, 2);

                    __cl_gen_to_be_invoked.DestroyWindow(uiTemplateName);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }