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


                UnityGameFramework.Runtime.UIComponent gen_to_be_invoked = (UnityGameFramework.Runtime.UIComponent)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    int _serialId = LuaAPI.xlua_tointeger(L, 2);

                    gen_to_be_invoked.CloseUIForm(_serialId);



                    return(0);
                }
                if (gen_param_count == 2 && translator.Assignable <UnityGameFramework.Runtime.UIForm>(L, 2))
                {
                    UnityGameFramework.Runtime.UIForm _uiForm = (UnityGameFramework.Runtime.UIForm)translator.GetObject(L, 2, typeof(UnityGameFramework.Runtime.UIForm));

                    gen_to_be_invoked.CloseUIForm(_uiForm);



                    return(0);
                }
                if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <object>(L, 3))
                {
                    int    _serialId = LuaAPI.xlua_tointeger(L, 2);
                    object _userData = translator.GetObject(L, 3, typeof(object));

                    gen_to_be_invoked.CloseUIForm(_serialId, _userData);



                    return(0);
                }
                if (gen_param_count == 3 && translator.Assignable <UnityGameFramework.Runtime.UIForm>(L, 2) && translator.Assignable <object>(L, 3))
                {
                    UnityGameFramework.Runtime.UIForm _uiForm = (UnityGameFramework.Runtime.UIForm)translator.GetObject(L, 2, typeof(UnityGameFramework.Runtime.UIForm));
                    object _userData = translator.GetObject(L, 3, typeof(object));

                    gen_to_be_invoked.CloseUIForm(_uiForm, _userData);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityGameFramework.Runtime.UIComponent.CloseUIForm!"));
        }
        static StackObject *get_SerialId_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityGameFramework.Runtime.UIForm instance_of_this_method = (UnityGameFramework.Runtime.UIForm) typeof(UnityGameFramework.Runtime.UIForm).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.SerialId;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method;
            return(__ret + 1);
        }
Ejemplo n.º 3
0
        static StackObject *CloseUIForm_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityGameFramework.Runtime.UIForm @uiForm = (UnityGameFramework.Runtime.UIForm) typeof(UnityGameFramework.Runtime.UIForm).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityGameFramework.Runtime.UIComponent instance_of_this_method = (UnityGameFramework.Runtime.UIComponent) typeof(UnityGameFramework.Runtime.UIComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.CloseUIForm(@uiForm);

            return(__ret);
        }
Ejemplo n.º 4
0
        static StackObject *SetUIFormInstanceLocked_5(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @locked = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityGameFramework.Runtime.UIForm @uiForm = (UnityGameFramework.Runtime.UIForm) typeof(UnityGameFramework.Runtime.UIForm).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UnityGameFramework.Runtime.UIComponent instance_of_this_method = (UnityGameFramework.Runtime.UIComponent) typeof(UnityGameFramework.Runtime.UIComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetUIFormInstanceLocked(@uiForm, @locked);

            return(__ret);
        }
        static int _m_GetUIForm(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityGameFramework.Runtime.UIComponent gen_to_be_invoked = (UnityGameFramework.Runtime.UIComponent)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    int _serialId = LuaAPI.xlua_tointeger(L, 2);

                    UnityGameFramework.Runtime.UIForm gen_ret = gen_to_be_invoked.GetUIForm(_serialId);
                    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))
                {
                    string _uiFormAssetName = LuaAPI.lua_tostring(L, 2);

                    UnityGameFramework.Runtime.UIForm gen_ret = gen_to_be_invoked.GetUIForm(_uiFormAssetName);
                    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 UnityGameFramework.Runtime.UIComponent.GetUIForm!"));
        }
        static int _m_SetUIFormInstancePriority(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityGameFramework.Runtime.UIComponent gen_to_be_invoked = (UnityGameFramework.Runtime.UIComponent)translator.FastGetCSObj(L, 1);



                {
                    UnityGameFramework.Runtime.UIForm _uiForm = (UnityGameFramework.Runtime.UIForm)translator.GetObject(L, 2, typeof(UnityGameFramework.Runtime.UIForm));
                    int _priority = LuaAPI.xlua_tointeger(L, 3);

                    gen_to_be_invoked.SetUIFormInstancePriority(_uiForm, _priority);



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


                UnityGameFramework.Runtime.UIComponent gen_to_be_invoked = (UnityGameFramework.Runtime.UIComponent)translator.FastGetCSObj(L, 1);



                {
                    UnityGameFramework.Runtime.UIForm _uiForm = (UnityGameFramework.Runtime.UIForm)translator.GetObject(L, 2, typeof(UnityGameFramework.Runtime.UIForm));

                    bool gen_ret = gen_to_be_invoked.IsValidUIForm(_uiForm);
                    LuaAPI.lua_pushboolean(L, gen_ret);



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