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


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



                {
                    string _uiName = LuaAPI.lua_tostring(L, 2);
                    System.Action <KEngine.UI.UIController, object[]> _callback = translator.GetDelegate <System.Action <KEngine.UI.UIController, object[]> >(L, 3);
                    object[] _args = translator.GetParams <object>(L, 4);

                    gen_to_be_invoked.CallDynamicUI(_uiName, _callback, _args);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_ReloadWindow(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    string    _windowTemplateName = LuaAPI.lua_tostring(L, 2);
                    KCallback _callback           = translator.GetDelegate <KCallback>(L, 3);

                    UnityEngine.Coroutine gen_ret = gen_to_be_invoked.ReloadWindow(_windowTemplateName, _callback);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Пример #3
0
        static int _m_LoadWindow(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   windowTemplateName = LuaAPI.lua_tostring(L, 2);
                    bool     openWhenFinish     = LuaAPI.lua_toboolean(L, 3);
                    object[] args = translator.GetParams <object>(L, 4);

                    KEngine.UI.UILoadState __cl_gen_ret = __cl_gen_to_be_invoked.LoadWindow(windowTemplateName, openWhenFinish, args);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
        static int _m_OpenDynamicWindow(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    string   _template     = LuaAPI.lua_tostring(L, 2);
                    string   _instanceName = LuaAPI.lua_tostring(L, 3);
                    object[] _args         = translator.GetParams <object>(L, 4);

                    KEngine.UI.UILoadState gen_ret = gen_to_be_invoked.OpenDynamicWindow(_template, _instanceName, _args);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Пример #5
0
        static int _g_get_UIWindows(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                KEngine.UI.UIModule __cl_gen_to_be_invoked = (KEngine.UI.UIModule)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.UIWindows);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Пример #6
0
        static int _s_set_LoadingUICount(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                KEngine.UI.UIModule __cl_gen_to_be_invoked = (KEngine.UI.UIModule)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.LoadingUICount = LuaAPI.xlua_tointeger(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Пример #7
0
        static int _s_set_UiBridge(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                KEngine.UI.UIModule __cl_gen_to_be_invoked = (KEngine.UI.UIModule)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.UiBridge = (KEngine.UI.IUIBridge)translator.GetObject(L, 2, typeof(KEngine.UI.IUIBridge));
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
        static int _m_PreLoadUIWindow(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) && (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 4) || translator.Assignable <object>(L, 4)))
                {
                    string   _uiTemplateName = LuaAPI.lua_tostring(L, 2);
                    bool     _isOnInit       = LuaAPI.lua_toboolean(L, 3);
                    object[] _args           = translator.GetParams <object>(L, 4);

                    KEngine.UI.UILoadState gen_ret = gen_to_be_invoked.PreLoadUIWindow(_uiTemplateName, _isOnInit, _args);
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count >= 2 && (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   _isOnInit       = LuaAPI.lua_toboolean(L, 3);

                    KEngine.UI.UILoadState gen_ret = gen_to_be_invoked.PreLoadUIWindow(_uiTemplateName, _isOnInit);
                    translator.Push(L, gen_ret);



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

                    KEngine.UI.UILoadState gen_ret = gen_to_be_invoked.PreLoadUIWindow(_uiTemplateName);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } 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.PreLoadUIWindow!"));
        }
        static int _g_get_UiBridge(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                KEngine.UI.UIModule gen_to_be_invoked = (KEngine.UI.UIModule)translator.FastGetCSObj(L, 1);
                translator.PushAny(L, gen_to_be_invoked.UiBridge);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
        static int _g_get_LoadingUICount(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                KEngine.UI.UIModule gen_to_be_invoked = (KEngine.UI.UIModule)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.LoadingUICount);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Пример #11
0
        static int _s_set_UIWindows(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                KEngine.UI.UIModule __cl_gen_to_be_invoked = (KEngine.UI.UIModule)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.UIWindows = (System.Collections.Generic.Dictionary <string, KEngine.UI.UILoadState>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary <string, KEngine.UI.UILoadState>));
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Пример #12
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    KEngine.UI.UIModule __cl_gen_ret = new KEngine.UI.UIModule();
                    translator.Push(L, __cl_gen_ret);
                    return(1);
                }
            }
            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 constructor!"));
        }
Пример #13
0
        static int _m_DestroyAllWindows(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    __cl_gen_to_be_invoked.DestroyAllWindows(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
        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!"));
        }
Пример #15
0
        static int _m_ToggleWindow(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   name = LuaAPI.lua_tostring(L, 2);
                    object[] args = translator.GetParams <object>(L, 3);

                    __cl_gen_to_be_invoked.ToggleWindow(name, args);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Пример #16
0
        static int _m_IsLoad(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 name = LuaAPI.lua_tostring(L, 2);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.IsLoad(name);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Пример #17
0
        static int _m_CloseWindow(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 2 && translator.Assignable <System.Type>(L, 2))
                {
                    System.Type t = (System.Type)translator.GetObject(L, 2, typeof(System.Type));

                    __cl_gen_to_be_invoked.CloseWindow(t);



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

                    __cl_gen_to_be_invoked.CloseWindow(name);



                    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.CloseWindow!"));
        }
        static int _m_GetOpenedWindow(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



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

                    KEngine.UI.UIController gen_ret = gen_to_be_invoked.GetOpenedWindow(_name);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Пример #19
0
        static int _m_CallUI(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);
                    System.Action <KEngine.UI.UIController, object[]> callback = translator.GetDelegate <System.Action <KEngine.UI.UIController, object[]> >(L, 3);
                    object[] args = translator.GetParams <object>(L, 4);

                    __cl_gen_to_be_invoked.CallUI(uiTemplateName, callback, args);



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