Esempio n. 1
0
        static int _m_SetDouble(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                LitJson.IJsonWrapper gen_to_be_invoked = (LitJson.IJsonWrapper)translator.FastGetCSObj(L, 1);



                {
                    double _val = LuaAPI.lua_tonumber(L, 2);

                    gen_to_be_invoked.SetDouble(_val);



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


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


            try {
                {
                    UnityEngine.RectTransform.Axis axis; translator.Get(L, 2, out axis);
                    float size = (float)LuaAPI.lua_tonumber(L, 3);

                    __cl_gen_to_be_invoked.SetSizeWithCurrentAnchors(axis, size);



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


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


            try {
                {
                    string methodName = LuaAPI.lua_tostring(L, 2);
                    float  time       = (float)LuaAPI.lua_tonumber(L, 3);

                    __cl_gen_to_be_invoked.Invoke(methodName, time);



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


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


            try {
                {
                    UnityEngine.GameObject go = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    float time = (float)LuaAPI.lua_tonumber(L, 3);

                    __cl_gen_to_be_invoked.SampleAnimation(go, time);



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



            try {
                {
                    UnityEngine.Vector4 a; translator.Get(L, 1, out a);
                    UnityEngine.Vector4 b; translator.Get(L, 2, out b);
                    float t = (float)LuaAPI.lua_tonumber(L, 3);

                    UnityEngine.Vector4 __cl_gen_ret = UnityEngine.Vector4.LerpUnclamped(a, b, t);
                    translator.PushUnityEngineVector4(L, __cl_gen_ret);



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


                FairyGUI.GScrollBar gen_to_be_invoked = (FairyGUI.GScrollBar)translator.FastGetCSObj(L, 1);



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

                    gen_to_be_invoked.SetDisplayPerc(_value);



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



            try {
                {
                    UnityEngine.Vector4 from; translator.Get(L, 1, out from);
                    UnityEngine.Vector4 to; translator.Get(L, 2, out to);
                    float t = (float)LuaAPI.lua_tonumber(L, 3);

                    UnityEngine.Vector4 __cl_gen_ret = UnityEngine.Vector4.Lerp(from, to, t);
                    translator.PushUnityEngineVector4(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
        static int _m_SlerpUnclamped_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 _t = (float)LuaAPI.lua_tonumber(L, 3);

                    UnityEngine.Quaternion gen_ret = UnityEngine.Quaternion.SlerpUnclamped(_a, _b, _t);
                    translator.PushUnityEngineQuaternion(L, gen_ret);



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



                {
                    UnityEngine.Vector2 _current; translator.Get(L, 1, out _current);
                    UnityEngine.Vector2 _target; translator.Get(L, 2, out _target);
                    float _maxDistanceDelta = (float)LuaAPI.lua_tonumber(L, 3);

                    UnityEngine.Vector2 gen_ret = UnityEngine.Vector2.MoveTowards(_current, _target, _maxDistanceDelta);
                    translator.PushUnityEngineVector2(L, gen_ret);



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


                Casinos.LuaMgr gen_to_be_invoked = (Casinos.LuaMgr)translator.FastGetCSObj(L, 1);



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

                    gen_to_be_invoked.Update(_elapsed_tm);



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


                JW.Framework.Network.NetConnector __cl_gen_to_be_invoked = (JW.Framework.Network.NetConnector)translator.FastGetCSObj(L, 1);



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

                    __cl_gen_to_be_invoked.LogicUpdate(deltaTime);



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


                System.IO.BinaryWriter gen_to_be_invoked = (System.IO.BinaryWriter)translator.FastGetCSObj(L, 1);



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

                    gen_to_be_invoked.WriteFloat(_value);



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


                Maria.Controller __cl_gen_to_be_invoked = (Maria.Controller)translator.FastGetCSObj(L, 1);



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

                    __cl_gen_to_be_invoked.Update(delta);



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



            try {
                {
                    UnityEngine.GameObject go = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject));
                    float duration            = (float)LuaAPI.lua_tonumber(L, 2);
                    UnityEngine.Vector2 pos; translator.Get(L, 3, out pos);

                    xc.ui.ugui.TweenAnchoredPosition __cl_gen_ret = xc.ui.ugui.TweenAnchoredPosition.Begin(go, duration, pos);
                    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_Update(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                FairyGUI.GProgressBar gen_to_be_invoked = (FairyGUI.GProgressBar)translator.FastGetCSObj(L, 1);



                {
                    double _newValue = LuaAPI.lua_tonumber(L, 2);

                    gen_to_be_invoked.Update(_newValue);



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



                {
                    float _timeStart = (float)LuaAPI.lua_tonumber(L, 1);
                    float _timeEnd   = (float)LuaAPI.lua_tonumber(L, 2);
                    float _value     = (float)LuaAPI.lua_tonumber(L, 3);

                    UnityEngine.AnimationCurve gen_ret = UnityEngine.AnimationCurve.Constant(_timeStart, _timeEnd, _value);
                    translator.Push(L, gen_ret);



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



                {
                    UnityEngine.Color32 _a; translator.Get(L, 1, out _a);
                    UnityEngine.Color32 _b; translator.Get(L, 2, out _b);
                    float _t = (float)LuaAPI.lua_tonumber(L, 3);

                    var gen_ret = UnityEngine.Color32.Lerp(_a, _b, _t);
                    translator.Push(L, gen_ret);



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


                FairyGUI.IAnimationGear gen_to_be_invoked = (FairyGUI.IAnimationGear)translator.FastGetCSObj(L, 1);



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

                    gen_to_be_invoked.Advance(_time);



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


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



                {
                    double _value = LuaAPI.lua_tonumber(L, 2);

                    gen_to_be_invoked.WriteDouble(_value);



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



            try {
                {
                    UnityEngine.Quaternion from; translator.Get(L, 1, out from);
                    UnityEngine.Quaternion to; translator.Get(L, 2, out to);
                    float maxDegreesDelta = (float)LuaAPI.lua_tonumber(L, 3);

                    UnityEngine.Quaternion __cl_gen_ret = UnityEngine.Quaternion.RotateTowards(from, to, maxDegreesDelta);
                    translator.PushUnityEngineQuaternion(L, __cl_gen_ret);



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



                {
                    UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 1, typeof(UnityEngine.Transform));
                    float _x = (float)LuaAPI.lua_tonumber(L, 2);
                    float _y = (float)LuaAPI.lua_tonumber(L, 3);
                    float _z = (float)LuaAPI.lua_tonumber(L, 4);

                    XLuaFramework.UIHelper.SetPosition(_transform, _x, _y, _z);



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


                TestForLuaChangeAtRuntime gen_to_be_invoked = (TestForLuaChangeAtRuntime)translator.FastGetCSObj(L, 1);



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

                    gen_to_be_invoked.SetSpeed(__speed);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Esempio n. 23
0
        static int 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));
            }
        }
Esempio n. 24
0
        static int _m_update(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Casinos.ParseStreamingAssetsDataInfo gen_to_be_invoked = (Casinos.ParseStreamingAssetsDataInfo)translator.FastGetCSObj(L, 1);



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

                    gen_to_be_invoked.update(_tm);



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



            try {
                {
                    UnityEngine.Vector4 current; translator.Get(L, 1, out current);
                    UnityEngine.Vector4 target; translator.Get(L, 2, out target);
                    float maxDistanceDelta = (float)LuaAPI.lua_tonumber(L, 3);

                    UnityEngine.Vector4 __cl_gen_ret = UnityEngine.Vector4.MoveTowards(current, target, maxDistanceDelta);
                    translator.PushUnityEngineVector4(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Esempio n. 26
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 6 && translator.Assignable <FairyGUI.PixelHitTestData>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6))
                {
                    FairyGUI.PixelHitTestData _data = (FairyGUI.PixelHitTestData)translator.GetObject(L, 2, typeof(FairyGUI.PixelHitTestData));
                    int   _offsetX      = LuaAPI.xlua_tointeger(L, 3);
                    int   _offsetY      = LuaAPI.xlua_tointeger(L, 4);
                    float _sourceWidth  = (float)LuaAPI.lua_tonumber(L, 5);
                    float _sourceHeight = (float)LuaAPI.lua_tonumber(L, 6);

                    FairyGUI.PixelHitTest gen_ret = new FairyGUI.PixelHitTest(_data, _offsetX, _offsetY, _sourceWidth, _sourceHeight);
                    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 FairyGUI.PixelHitTest constructor!"));
        }
        static int _m_SetBlendShapeWeight(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 value = (float)LuaAPI.lua_tonumber(L, 3);

                    __cl_gen_to_be_invoked.SetBlendShapeWeight(index, value);



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



            try {
                {
                    UnityEngine.GameObject go = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject));
                    float duration            = (float)LuaAPI.lua_tonumber(L, 2);
                    UnityEngine.Quaternion rot; translator.Get(L, 3, out rot);

                    TweenRotation __cl_gen_ret = TweenRotation.Begin(go, duration, rot);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
        public double __Gen_Delegate_Imp12(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
        }
Esempio n. 30
0
        static int _m_StartWithArg_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    System.Action <object> _onTimerWithArgCallback = translator.GetDelegate <System.Action <object> >(L, 1);
                    float  _time       = (float)LuaAPI.lua_tonumber(L, 2);
                    float  _repeatRate = (float)LuaAPI.lua_tonumber(L, 3);
                    object _arg        = translator.GetObject(L, 4, typeof(object));

                    TimerSystem.StartWithArg(_onTimerWithArgCallback, _time, _repeatRate, _arg);



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