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.Cloth();

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
        static int _s_set_sphereColliders(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.sphereColliders = (UnityEngine.ClothSphereColliderPair[])translator.GetObject(L, 2, typeof(UnityEngine.ClothSphereColliderPair[]));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _g_get_selfCollisionDistance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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

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

                UnityEngine.Cloth gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.useTethers = 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_worldVelocityScale(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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

            try {
                UnityEngine.Cloth __cl_gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.solverFrequency = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
        static int _s_set_capsuleColliders(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.Cloth __cl_gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.capsuleColliders = (UnityEngine.CapsuleCollider[])translator.GetObject(L, 2, typeof(UnityEngine.CapsuleCollider[]));
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
        static int _s_set_worldAccelerationScale(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.Cloth __cl_gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.worldAccelerationScale = (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_sphereColliders(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.Cloth __cl_gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.sphereColliders);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Esempio n. 11
0
        static int _s_set_selfCollisionStiffness(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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

            try {
                UnityEngine.Cloth   __cl_gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1);
                UnityEngine.Vector3 __cl_gen_value; translator.Get(L, 2, out __cl_gen_value);
                __cl_gen_to_be_invoked.externalAcceleration = __cl_gen_value;
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Esempio n. 13
0
        static int _s_set_randomAcceleration(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.Cloth   gen_to_be_invoked = (UnityEngine.Cloth)translator.FastGetCSObj(L, 1);
                UnityEngine.Vector3 gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.randomAcceleration = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Esempio n. 14
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    var gen_ret = new UnityEngine.Cloth();
                    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.Cloth constructor!"));
        }
        static int _m_ClearTransformMotion(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    __cl_gen_to_be_invoked.ClearTransformMotion(  );



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


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
                {
                    bool _enabled = LuaAPI.lua_toboolean(L, 2);

                    gen_to_be_invoked.SetEnabledFading(_enabled);



                    return(0);
                }
                if (gen_param_count == 3 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    bool  _enabled           = LuaAPI.lua_toboolean(L, 2);
                    float _interpolationTime = (float)LuaAPI.lua_tonumber(L, 3);

                    gen_to_be_invoked.SetEnabledFading(_enabled, _interpolationTime);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Cloth.SetEnabledFading!"));
        }
Esempio n. 17
0
        static int _m_SetVirtualParticleWeights(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    System.Collections.Generic.List <UnityEngine.Vector3> _weights = (System.Collections.Generic.List <UnityEngine.Vector3>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.Vector3>));

                    gen_to_be_invoked.SetVirtualParticleWeights(_weights);



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


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



                {
                    System.Collections.Generic.List <uint> _indices = (System.Collections.Generic.List <uint>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <uint>));

                    gen_to_be_invoked.SetSelfAndInterCollisionIndices(_indices);



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