public float GetMuscle(MuscleHandle muscle)
 {
     ThrowIfInvalid(); return(InternalGetMuscle(muscle));
 }
 public void  SetMuscle(MuscleHandle muscle, float value)
 {
     ThrowIfInvalid(); InternalSetMuscle(muscle, value);
 }
 private extern float InternalGetMuscle(MuscleHandle muscle);
 private extern void InternalSetMuscle(MuscleHandle muscle, float value);
 private string GetName()
 {
     return(MuscleHandle.GetName_Injected(ref this));
 }
 static public int constructor(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         int argc = LuaDLL.lua_gettop(l);
         UnityEngine.Animations.MuscleHandle o;
         if (matchType(l, argc, 2, typeof(UnityEngine.BodyDof)))
         {
             UnityEngine.BodyDof a1;
             a1 = (UnityEngine.BodyDof)LuaDLL.luaL_checkinteger(l, 2);
             o  = new UnityEngine.Animations.MuscleHandle(a1);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(UnityEngine.HeadDof)))
         {
             UnityEngine.HeadDof a1;
             a1 = (UnityEngine.HeadDof)LuaDLL.luaL_checkinteger(l, 2);
             o  = new UnityEngine.Animations.MuscleHandle(a1);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(UnityEngine.HumanPartDof), typeof(UnityEngine.LegDof)))
         {
             UnityEngine.HumanPartDof a1;
             a1 = (UnityEngine.HumanPartDof)LuaDLL.luaL_checkinteger(l, 2);
             UnityEngine.LegDof a2;
             a2 = (UnityEngine.LegDof)LuaDLL.luaL_checkinteger(l, 3);
             o  = new UnityEngine.Animations.MuscleHandle(a1, a2);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(UnityEngine.HumanPartDof), typeof(UnityEngine.ArmDof)))
         {
             UnityEngine.HumanPartDof a1;
             a1 = (UnityEngine.HumanPartDof)LuaDLL.luaL_checkinteger(l, 2);
             UnityEngine.ArmDof a2;
             a2 = (UnityEngine.ArmDof)LuaDLL.luaL_checkinteger(l, 3);
             o  = new UnityEngine.Animations.MuscleHandle(a1, a2);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(UnityEngine.HumanPartDof), typeof(UnityEngine.FingerDof)))
         {
             UnityEngine.HumanPartDof a1;
             a1 = (UnityEngine.HumanPartDof)LuaDLL.luaL_checkinteger(l, 2);
             UnityEngine.FingerDof a2;
             a2 = (UnityEngine.FingerDof)LuaDLL.luaL_checkinteger(l, 3);
             o  = new UnityEngine.Animations.MuscleHandle(a1, a2);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc == 0)
         {
             o = new UnityEngine.Animations.MuscleHandle();
             pushValue(l, true);
             pushObject(l, o);
             return(2);
         }
         return(error(l, "New object failed."));
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
 private static extern string GetName_Injected(ref MuscleHandle _unity_self);
 private static extern void InternalSetMuscle_Injected(ref AnimationHumanStream _unity_self, ref MuscleHandle muscle, float value);
 private static extern float InternalGetMuscle_Injected(ref AnimationHumanStream _unity_self, ref MuscleHandle muscle);
 private void InternalSetMuscle(MuscleHandle muscle, float value)
 {
     AnimationHumanStream.InternalSetMuscle_Injected(ref this, ref muscle, value);
 }
 private float InternalGetMuscle(MuscleHandle muscle)
 {
     return(AnimationHumanStream.InternalGetMuscle_Injected(ref this, ref muscle));
 }