static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *__ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new UnityEngine.SliderJoint2D();

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Ejemplo n.º 2
0
        static int _s_set_useLimits(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.SliderJoint2D __cl_gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.useLimits = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Ejemplo n.º 3
0
        static int _g_get_jointSpeed(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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

                UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.angle = (float)LuaAPI.lua_tonumber(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _g_get_referenceAngle(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.SliderJoint2D gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.referenceAngle);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Ejemplo n.º 6
0
        static int _s_set_motor(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.SliderJoint2D __cl_gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1);
                UnityEngine.JointMotor2D  __cl_gen_value; translator.Get(L, 2, out __cl_gen_value);
                __cl_gen_to_be_invoked.motor = __cl_gen_value;
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
        static int _s_set_limits(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.SliderJoint2D            gen_to_be_invoked = (UnityEngine.SliderJoint2D)translator.FastGetCSObj(L, 1);
                UnityEngine.JointTranslationLimits2D gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.limits = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Ejemplo n.º 8
0
 public override void ReadFrom(object obj)
 {
     base.ReadFrom(obj);
     if (obj == null)
     {
         return;
     }
     UnityEngine.SliderJoint2D o = (UnityEngine.SliderJoint2D)obj;
     autoConfigureAngle = o.autoConfigureAngle;
     angle     = o.angle;
     useMotor  = o.useMotor;
     useLimits = o.useLimits;
     motor     = o.motor;
     limits    = o.limits;
 }
Ejemplo n.º 9
0
 public override object WriteTo(object obj, System.Collections.Generic.Dictionary <long, UnityEngine.Object> objects)
 {
     obj = base.WriteTo(obj, objects);
     if (obj == null)
     {
         return(null);
     }
     UnityEngine.SliderJoint2D o = (UnityEngine.SliderJoint2D)obj;
     o.autoConfigureAngle = autoConfigureAngle;
     o.angle     = angle;
     o.useMotor  = useMotor;
     o.useLimits = useLimits;
     o.motor     = motor;
     o.limits    = limits;
     return(o);
 }
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    var gen_ret = new UnityEngine.SliderJoint2D();
                    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 UnityEngine.SliderJoint2D constructor!"));
        }
Ejemplo n.º 11
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));
            }
        }