Exemplo n.º 1
0
        static int _m_SignedAngle_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    UnityEngine.Vector2 from; translator.Get(L, 1, out from);
                    UnityEngine.Vector2 to; translator.Get(L, 2, out to);

                    float __cl_gen_ret = UnityEngine.Vector2.SignedAngle(from, to);
                    LuaAPI.lua_pushnumber(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 2
0
        static int _m_GetMinSize_xlua_st_(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



            try {
                {
                    UnityEngine.RectTransform rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform));
                    int axis = LuaAPI.xlua_tointeger(L, 2);

                    float __cl_gen_ret = UnityEngine.UI.LayoutUtility.GetMinSize(rect, axis);
                    LuaAPI.lua_pushnumber(L, __cl_gen_ret);



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



                {
                    UnityEngine.RectTransform _rect = (UnityEngine.RectTransform)translator.GetObject(L, 1, typeof(UnityEngine.RectTransform));
                    int _axis = LuaAPI.xlua_tointeger(L, 2);

                    var gen_ret = UnityEngine.UI.LayoutUtility.GetPreferredSize(_rect, _axis);
                    LuaAPI.lua_pushnumber(L, gen_ret);



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



                {
                    UnityEngine.Vector4 _a; translator.Get(L, 1, out _a);

                    float gen_ret = UnityEngine.Vector4.SqrMagnitude(
                        _a);
                    LuaAPI.lua_pushnumber(L, gen_ret);



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


                DCET.Model.NumericComponent gen_to_be_invoked = (DCET.Model.NumericComponent)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 _numericType = LuaAPI.xlua_tointeger(L, 2);

                    float gen_ret = gen_to_be_invoked.GetAsFloat(_numericType);
                    LuaAPI.lua_pushnumber(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <DCET.Model.NumericType>(L, 2))
                {
                    DCET.Model.NumericType _numericType; translator.Get(L, 2, out _numericType);

                    float gen_ret = gen_to_be_invoked.GetAsFloat(_numericType);
                    LuaAPI.lua_pushnumber(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 DCET.Model.NumericComponent.GetAsFloat!"));
        }
        static int _m_GetInheritedAlpha(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.CanvasRenderer gen_to_be_invoked = (UnityEngine.CanvasRenderer)translator.FastGetCSObj(L, 1);



                {
                    float gen_ret = gen_to_be_invoked.GetInheritedAlpha(  );
                    LuaAPI.lua_pushnumber(L, gen_ret);



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



                {
                    UnityEngine.Quaternion _a; translator.Get(L, 1, out _a);
                    UnityEngine.Quaternion _b; translator.Get(L, 2, out _b);

                    var gen_ret = UnityEngine.Quaternion.Angle(_a, _b);
                    LuaAPI.lua_pushnumber(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Exemplo n.º 8
0
        public void __Gen_Delegate_Imp40(object p0, float p1)
        {
#if THREAD_SAFE || HOTFIX_ENABLE
            lock (luaEnv.luaEnvLock)
            {
#endif
            RealStatePtr L = luaEnv.rawL;
            int errFunc    = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference);
            ObjectTranslator translator = luaEnv.translator;
            translator.PushAny(L, p0);
            LuaAPI.lua_pushnumber(L, p1);

            PCall(L, 2, 0, errFunc);



            LuaAPI.lua_settop(L, errFunc - 1);

#if THREAD_SAFE || HOTFIX_ENABLE
        }
#endif
        }
Exemplo n.º 9
0
        static int _m_Dot_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    UnityEngine.Quaternion a; translator.Get(L, 1, out a);
                    UnityEngine.Quaternion b; translator.Get(L, 2, out b);

                    float __cl_gen_ret = UnityEngine.Quaternion.Dot(a, b);
                    LuaAPI.lua_pushnumber(L, __cl_gen_ret);



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


                BehaviorDesigner.Runtime.Tasks.HotfixConditional gen_to_be_invoked = (BehaviorDesigner.Runtime.Tasks.HotfixConditional)translator.FastGetCSObj(L, 1);



                {
                    float gen_ret = gen_to_be_invoked.GetUtility(  );
                    LuaAPI.lua_pushnumber(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Exemplo n.º 11
0
        public void __Gen_Delegate_Imp7(bool p0, float p1)
        {
#if THREAD_SAFE || HOTFIX_ENABLE
            lock (luaEnv.luaEnvLock)
            {
#endif
            RealStatePtr L = luaEnv.rawL;
            int errFunc    = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference);

            LuaAPI.lua_pushboolean(L, p0);
            LuaAPI.lua_pushnumber(L, p1);

            PCall(L, 2, 0, errFunc);



            LuaAPI.lua_settop(L, errFunc - 1);

#if THREAD_SAFE || HOTFIX_ENABLE
        }
#endif
        }
Exemplo n.º 12
0
        static int _m_ToDouble(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                MongoDB.Bson.BsonString gen_to_be_invoked = (MongoDB.Bson.BsonString)translator.FastGetCSObj(L, 1);



                {
                    double gen_ret = gen_to_be_invoked.ToDouble(  );
                    LuaAPI.lua_pushnumber(L, gen_ret);



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



            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && translator.Assignable <Neptune.Data>(L, 2))
                {
                    uint         id   = LuaAPI.xlua_touint(L, 1);
                    Neptune.Data data = (Neptune.Data)translator.GetObject(L, 2, typeof(Neptune.Data));

                    float __cl_gen_ret = xc.Dungeon.LevelObjectHelper.GetDistanceBetweenLocalPlayerAndTag(id, data);
                    LuaAPI.lua_pushnumber(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 1 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1))
                {
                    uint id = LuaAPI.xlua_touint(L, 1);

                    float __cl_gen_ret = xc.Dungeon.LevelObjectHelper.GetDistanceBetweenLocalPlayerAndTag(id);
                    LuaAPI.lua_pushnumber(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 xc.Dungeon.LevelObjectHelper.GetDistanceBetweenLocalPlayerAndTag!"));
        }
Exemplo n.º 14
0
        bool tryGetPushFuncByType <T>(Type type, out T func) where T : class
        {
            if (push_func_with_type == null)
            {
                push_func_with_type = new Dictionary <Type, Delegate>()
                {
                    { typeof(int), new Action <RealStatePtr, int>(LuaAPI.xlua_pushinteger) },
                    { typeof(double), new Action <RealStatePtr, double>(LuaAPI.lua_pushnumber) },
                    { typeof(string), new Action <RealStatePtr, string>(LuaAPI.lua_pushstring) },
                    { typeof(byte[]), new Action <RealStatePtr, byte[]>(LuaAPI.lua_pushstring) },
                    { typeof(bool), new Action <RealStatePtr, bool>(LuaAPI.lua_pushboolean) },
                    { typeof(long), new Action <RealStatePtr, long>(LuaAPI.lua_pushint64) },
                    { typeof(ulong), new Action <RealStatePtr, ulong>(LuaAPI.lua_pushuint64) },
                    { typeof(IntPtr), new Action <RealStatePtr, IntPtr>(LuaAPI.lua_pushlightuserdata) },
                    { typeof(decimal), new Action <RealStatePtr, decimal>(PushDecimal) },
                    { typeof(byte), new Action <RealStatePtr, byte>((L, v) => LuaAPI.xlua_pushinteger(L, v)) },
                    { typeof(sbyte), new Action <RealStatePtr, sbyte>((L, v) => LuaAPI.xlua_pushinteger(L, v)) },
                    { typeof(char), new Action <RealStatePtr, char>((L, v) => LuaAPI.xlua_pushinteger(L, v)) },
                    { typeof(short), new Action <RealStatePtr, short>((L, v) => LuaAPI.xlua_pushinteger(L, v)) },
                    { typeof(ushort), new Action <RealStatePtr, ushort>((L, v) => LuaAPI.xlua_pushinteger(L, v)) },
                    { typeof(uint), new Action <RealStatePtr, uint>(LuaAPI.xlua_pushuint) },
                    { typeof(float), new Action <RealStatePtr, float>((L, v) => LuaAPI.lua_pushnumber(L, v)) },
                };
            }

            Delegate obj;

            if (push_func_with_type.TryGetValue(type, out obj))
            {
                func = obj as T;
                return(true);
            }
            else
            {
                func = null;
                return(false);
            }
        }
Exemplo n.º 15
0
        static int _m_GetPreferredHeight(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            EmojiText __cl_gen_to_be_invoked = (EmojiText)translator.FastGetCSObj(L, 1);


            try {
                {
                    float scaleFactor = (float)LuaAPI.lua_tonumber(L, 2);

                    float __cl_gen_ret = __cl_gen_to_be_invoked.GetPreferredHeight(scaleFactor);
                    LuaAPI.lua_pushnumber(L, __cl_gen_ret);



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


            UnityEngine.Vector2 __cl_gen_to_be_invoked; translator.Get(L, 1, out __cl_gen_to_be_invoked);


            try {
                {
                    float __cl_gen_ret = __cl_gen_to_be_invoked.SqrMagnitude(  );
                    LuaAPI.lua_pushnumber(L, __cl_gen_ret);


                    translator.UpdateUnityEngineVector2(L, 1, __cl_gen_to_be_invoked);


                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 17
0
        static int _m_GetMotorForce(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.SliderJoint2D __cl_gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1);


            try {
                {
                    float timeStep = (float)LuaAPI.lua_tonumber(L, 2);

                    float __cl_gen_ret = __cl_gen_to_be_invoked.GetMotorForce(timeStep);
                    LuaAPI.lua_pushnumber(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 18
0
        static int _m_FloatParamMethod(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            XLuaTest.NoGc __cl_gen_to_be_invoked = (XLuaTest.NoGc)translator.FastGetCSObj(L, 1);


            try {
                {
                    float p = (float)LuaAPI.lua_tonumber(L, 2);

                    float __cl_gen_ret = __cl_gen_to_be_invoked.FloatParamMethod(p);
                    LuaAPI.lua_pushnumber(L, __cl_gen_ret);



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


            UnityEngine.ProceduralMaterial __cl_gen_to_be_invoked = (UnityEngine.ProceduralMaterial)translator.FastGetCSObj(L, 1);


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

                    float __cl_gen_ret = __cl_gen_to_be_invoked.GetProceduralFloat(inputName);
                    LuaAPI.lua_pushnumber(L, __cl_gen_ret);



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



                {
                    UnityEngine.Vector3 _startPoint; translator.Get(L, 1, out _startPoint);
                    UnityEngine.Vector3 _endPoint; translator.Get(L, 2, out _endPoint);
                    UnityEngine.Vector3 _point; translator.Get(L, 3, out _point);

                    float gen_ret = DCET.Model.PositionHelper.DistanceOfPointToVector(_startPoint, _endPoint, _point);
                    LuaAPI.lua_pushnumber(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Exemplo n.º 21
0
        static int _m_GetClosestTypeNPCDistance_xlua_st_(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



            try {
                {
                    GameStage  _gameStage = (GameStage)translator.GetObject(L, 1, typeof(GameStage));
                    PlayerBase _player    = (PlayerBase)translator.GetObject(L, 2, typeof(PlayerBase));
                    NPCType    _type; translator.Get(L, 3, out _type);

                    float __cl_gen_ret = GameStageUtility.GetClosestTypeNPCDistance(_gameStage, _player, _type);
                    LuaAPI.lua_pushnumber(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 22
0
        static int Evaluate(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.AnimationCurve __cl_gen_to_be_invoked = (UnityEngine.AnimationCurve)translator.FastGetCSObj(L, 1);


            try {
                {
                    float time = (float)LuaAPI.lua_tonumber(L, 2);

                    float __cl_gen_ret = __cl_gen_to_be_invoked.Evaluate(time);
                    LuaAPI.lua_pushnumber(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 23
0
        public double __Gen_Delegate_Imp7(double p0, double p1)
        {
#if THREAD_SAFE || HOTFIX_ENABLE
            lock (luaEnv.luaEnvLock)
            {
#endif
            RealStatePtr L = luaEnv.rawL;
            int errFunc    = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference);

            LuaAPI.lua_pushnumber(L, p0);
            LuaAPI.lua_pushnumber(L, p1);

            PCall(L, 2, 1, errFunc);


            double __gen_ret = LuaAPI.lua_tonumber(L, errFunc + 1);
            LuaAPI.lua_settop(L, errFunc - 1);
            return(__gen_ret);

#if THREAD_SAFE || HOTFIX_ENABLE
        }
#endif
        }
        static int _m_GetAxisRaw(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.EventSystems.BaseInput __cl_gen_to_be_invoked = (UnityEngine.EventSystems.BaseInput)translator.FastGetCSObj(L, 1);


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

                    float __cl_gen_ret = __cl_gen_to_be_invoked.GetAxisRaw(axisName);
                    LuaAPI.lua_pushnumber(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 25
0
        static int _m_GetAnimationLength(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            AnimationController __cl_gen_to_be_invoked = (AnimationController)translator.FastGetCSObj(L, 1);


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

                    float __cl_gen_ret = __cl_gen_to_be_invoked.GetAnimationLength(ani);
                    LuaAPI.lua_pushnumber(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 26
0
        static int _m_GetPlaneDistance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.ui.ugui.UIManager __cl_gen_to_be_invoked = (xc.ui.ugui.UIManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    int orderInLayer = LuaAPI.xlua_tointeger(L, 2);

                    float __cl_gen_ret = __cl_gen_to_be_invoked.GetPlaneDistance(orderInLayer);
                    LuaAPI.lua_pushnumber(L, __cl_gen_ret);



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


            UnityEngine.SkinnedMeshRenderer __cl_gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);


            try {
                {
                    int index = LuaAPI.xlua_tointeger(L, 2);

                    float __cl_gen_ret = __cl_gen_to_be_invoked.GetBlendShapeWeight(index);
                    LuaAPI.lua_pushnumber(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 28
0
        public void __Gen_Delegate_Imp24(float p0, string p1, System.Collections.Generic.Dictionary <byte, string> p2)
        {
#if THREAD_SAFE || HOTFIX_ENABLE
            lock (luaEnv.luaEnvLock)
            {
#endif
            RealStatePtr L = luaEnv.rawL;
            int errFunc    = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference);
            ObjectTranslator translator = luaEnv.translator;
            LuaAPI.lua_pushnumber(L, p0);
            LuaAPI.lua_pushstring(L, p1);
            translator.Push(L, p2);

            PCall(L, 3, 0, errFunc);



            LuaAPI.lua_settop(L, errFunc - 1);

#if THREAD_SAFE || HOTFIX_ENABLE
        }
#endif
        }
Exemplo n.º 29
0
        static int _m_GetAttributeFloat_xlua_st_(RealStatePtr L)
        {
            try {
                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
                {
                    string _attrName = LuaAPI.lua_tostring(L, 1);

                    float gen_ret = FairyGUI.Utils.XMLIterator.GetAttributeFloat(
                        _attrName);
                    LuaAPI.lua_pushnumber(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    string _attrName = LuaAPI.lua_tostring(L, 1);
                    float  _defValue = (float)LuaAPI.lua_tonumber(L, 2);

                    float gen_ret = FairyGUI.Utils.XMLIterator.GetAttributeFloat(
                        _attrName,
                        _defValue);
                    LuaAPI.lua_pushnumber(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 FairyGUI.Utils.XMLIterator.GetAttributeFloat!"));
        }
Exemplo n.º 30
0
        public double __Gen_Delegate_Imp0(object p0, double p1, double p2)
        {
#if THREAD_SAFE || HOTFIX_ENABLE
            lock (luaEnv.luaEnvLock)
            {
#endif
            RealStatePtr L = luaEnv.rawL;
            int errFunc    = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference);
            ObjectTranslator translator = luaEnv.translator;
            translator.PushAny(L, p0);
            LuaAPI.lua_pushnumber(L, p1);
            LuaAPI.lua_pushnumber(L, p2);

            PCall(L, 3, 1, errFunc);


            double __gen_ret = LuaAPI.lua_tonumber(L, errFunc + 1);
            LuaAPI.lua_settop(L, errFunc - 1);
            return(__gen_ret);

#if THREAD_SAFE || HOTFIX_ENABLE
        }
#endif
        }