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.HingeJoint(); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static int _g_get_limits(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.HingeJoint __cl_gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.limits); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _s_set_useSpring(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.HingeJoint __cl_gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.useSpring = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _g_get_angle(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.HingeJoint gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.angle); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_limits(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.HingeJoint __cl_gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); UnityEngine.JointLimits __cl_gen_value; translator.Get(L, 2, out __cl_gen_value); __cl_gen_to_be_invoked.limits = __cl_gen_value; } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _s_set_spring(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.HingeJoint gen_to_be_invoked = (UnityEngine.HingeJoint)translator.FastGetCSObj(L, 1); UnityEngine.JointSpring gen_value; translator.Get(L, 2, out gen_value); gen_to_be_invoked.spring = gen_value; } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
public override void ReadFrom(object obj) { base.ReadFrom(obj); if (obj == null) { return; } UnityEngine.HingeJoint o = (UnityEngine.HingeJoint)obj; motor = o.motor; limits = o.limits; spring = o.spring; useMotor = o.useMotor; useLimits = o.useLimits; useSpring = o.useSpring; }
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.HingeJoint o = (UnityEngine.HingeJoint)obj; o.motor = motor; o.limits = limits; o.spring = spring; o.useMotor = useMotor; o.useLimits = useLimits; o.useSpring = useSpring; return(o); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { UnityEngine.HingeJoint gen_ret = new UnityEngine.HingeJoint(); 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.HingeJoint constructor!")); }