static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    var gen_ret = new UnityEngine.ParticleSystem();
                    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.ParticleSystem constructor!"));
        }
        static int _m_Stop(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1)
                {
                    gen_to_be_invoked.Stop(  );



                    return(0);
                }
                if (gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
                {
                    bool _withChildren = LuaAPI.lua_toboolean(L, 2);

                    gen_to_be_invoked.Stop(_withChildren);



                    return(0);
                }
                if (gen_param_count == 3 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.ParticleSystemStopBehavior>(L, 3))
                {
                    bool _withChildren = LuaAPI.lua_toboolean(L, 2);
                    UnityEngine.ParticleSystemStopBehavior _stopBehavior; translator.Get(L, 3, out _stopBehavior);

                    gen_to_be_invoked.Stop(_withChildren, _stopBehavior);



                    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.ParticleSystem.Stop!"));
        }
        int UnityEngineParticleSystem_m_TriggerSubEmitter(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


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

            if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
            {
                int _subEmitterIndex = LuaAPI.xlua_tointeger(L, 2);

                gen_to_be_invoked.TriggerSubEmitter(_subEmitterIndex);



                return(0);
            }
            if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.ParticleSystem.Particle>(L, 3))
            {
                int _subEmitterIndex = LuaAPI.xlua_tointeger(L, 2);
                UnityEngine.ParticleSystem.Particle _particle; translator.Get(L, 3, out _particle);

                gen_to_be_invoked.TriggerSubEmitter(_subEmitterIndex, ref _particle);
                translator.Push(L, _particle);
                translator.Update(L, 3, _particle);



                return(1);
            }
            if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle> >(L, 3))
            {
                int _subEmitterIndex = LuaAPI.xlua_tointeger(L, 2);
                System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle> _particles = (System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle>));

                gen_to_be_invoked.TriggerSubEmitter(_subEmitterIndex, _particles);



                return(0);
            }


            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.TriggerSubEmitter!"));
        }
        int UnityEngineParticleSystem_m_SetTrails(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


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


            {
                UnityEngine.ParticleSystem.Trails _trailData; translator.Get(L, 2, out _trailData);

                gen_to_be_invoked.SetTrails(_trailData);



                return(0);
            }
        }
        int UnityEngineParticleSystem_m_SetPlaybackState(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


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


            {
                UnityEngine.ParticleSystem.PlaybackState _playbackState; translator.Get(L, 2, out _playbackState);

                gen_to_be_invoked.SetPlaybackState(_playbackState);



                return(0);
            }
        }
Example #6
0
        static StackObject *EnableEmission_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @enable = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.ParticleSystem @ps = (UnityEngine.ParticleSystem) typeof(UnityEngine.ParticleSystem).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            global::PSExtensionMethods.EnableEmission(@ps, @enable);

            return(__ret);
        }
        int UnityEngineParticleSystem_m_SetParticles(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


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

            if (gen_param_count == 2 && translator.Assignable <UnityEngine.ParticleSystem.Particle[]>(L, 2))
            {
                UnityEngine.ParticleSystem.Particle[] _particles = (UnityEngine.ParticleSystem.Particle[])translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem.Particle[]));

                gen_to_be_invoked.SetParticles(_particles);



                return(1);
            }
            if (gen_param_count == 3 && translator.Assignable <UnityEngine.ParticleSystem.Particle[]>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
            {
                UnityEngine.ParticleSystem.Particle[] _particles = (UnityEngine.ParticleSystem.Particle[])translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem.Particle[]));
                int _size = LuaAPI.xlua_tointeger(L, 3);

                gen_to_be_invoked.SetParticles(_particles, _size);



                return(1);
            }
            if (gen_param_count == 4 && translator.Assignable <UnityEngine.ParticleSystem.Particle[]>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
            {
                UnityEngine.ParticleSystem.Particle[] _particles = (UnityEngine.ParticleSystem.Particle[])translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem.Particle[]));
                int _size   = LuaAPI.xlua_tointeger(L, 3);
                int _offset = LuaAPI.xlua_tointeger(L, 4);

                gen_to_be_invoked.SetParticles(_particles, _size, _offset);



                return(1);
            }


            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.SetParticles!"));
        }
        int UnityEngineParticleSystem_m_SetCustomParticleData(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


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


            {
                System.Collections.Generic.List <UnityEngine.Vector4> _customData = (System.Collections.Generic.List <UnityEngine.Vector4>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.Vector4>));
                UnityEngine.ParticleSystemCustomData _streamIndex; translator.Get(L, 3, out _streamIndex);

                gen_to_be_invoked.SetCustomParticleData(_customData, _streamIndex);



                return(0);
            }
        }
Example #9
0
        static StackObject *Recycle_9(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.ParticleSystem @ps = (UnityEngine.ParticleSystem) typeof(UnityEngine.ParticleSystem).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            global::PSPoolManager instance_of_this_method = (global::PSPoolManager)typeof(global::PSPoolManager).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));

            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Recycle(@ps);

            return(__ret);
        }
Example #10
0
        static StackObject *GetSafeTriggerParticlesSize_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.ParticleSystemTriggerEventType type = (UnityEngine.ParticleSystemTriggerEventType) typeof(UnityEngine.ParticleSystemTriggerEventType).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.ParticleSystem ps = (UnityEngine.ParticleSystem) typeof(UnityEngine.ParticleSystem).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = UnityEngine.ParticlePhysicsExtensions.GetSafeTriggerParticlesSize(ps, type);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method;
            return(__ret + 1);
        }
Example #11
0
        static StackObject *SetTriggerParticles_5(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle> particles = (System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle>) typeof(System.Collections.Generic.List <UnityEngine.ParticleSystem.Particle>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.ParticleSystemTriggerEventType type = (UnityEngine.ParticleSystemTriggerEventType) typeof(UnityEngine.ParticleSystemTriggerEventType).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UnityEngine.ParticleSystem ps = (UnityEngine.ParticleSystem) typeof(UnityEngine.ParticleSystem).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            UnityEngine.ParticlePhysicsExtensions.SetTriggerParticles(ps, type, particles);

            return(__ret);
        }
        static int _m_ClearJob(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    gen_to_be_invoked.ClearJob(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        int UnityEngineParticleSystem_m_Stop(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


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

            if (gen_param_count == 1)
            {
                gen_to_be_invoked.Stop(  );



                return(0);
            }
            if (gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
            {
                bool _withChildren = LuaAPI.lua_toboolean(L, 2);

                gen_to_be_invoked.Stop(_withChildren);



                return(0);
            }
            if (gen_param_count == 3 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2) && translator.Assignable <UnityEngine.ParticleSystemStopBehavior>(L, 3))
            {
                bool _withChildren = LuaAPI.lua_toboolean(L, 2);
                UnityEngine.ParticleSystemStopBehavior _stopBehavior; translator.Get(L, 3, out _stopBehavior);

                gen_to_be_invoked.Stop(_withChildren, _stopBehavior);



                return(0);
            }


            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.Stop!"));
        }
Example #14
0
        static StackObject *GetCollisionEvents_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Collections.Generic.List <UnityEngine.ParticleCollisionEvent> collisionEvents = (System.Collections.Generic.List <UnityEngine.ParticleCollisionEvent>) typeof(System.Collections.Generic.List <UnityEngine.ParticleCollisionEvent>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.GameObject go = (UnityEngine.GameObject) typeof(UnityEngine.GameObject).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UnityEngine.ParticleSystem ps = (UnityEngine.ParticleSystem) typeof(UnityEngine.ParticleSystem).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = UnityEngine.ParticlePhysicsExtensions.GetCollisionEvents(ps, go, collisionEvents);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method;
            return(__ret + 1);
        }
Example #15
0
        static int _m_Emit(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    int _count = LuaAPI.xlua_tointeger(L, 2);

                    gen_to_be_invoked.Emit(_count);



                    return(0);
                }
                if (gen_param_count == 3 && translator.Assignable <UnityEngine.ParticleSystem.EmitParams>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    UnityEngine.ParticleSystem.EmitParams _emitParams; translator.Get(L, 2, out _emitParams);
                    int _count = LuaAPI.xlua_tointeger(L, 3);

                    gen_to_be_invoked.Emit(_emitParams, _count);



                    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.ParticleSystem.Emit!"));
        }
Example #16
0
        static StackObject *Simulate_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 4);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @restart = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Boolean @withChildren = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            System.Single @t = *(float *)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            UnityEngine.ParticleSystem instance_of_this_method = (UnityEngine.ParticleSystem) typeof(UnityEngine.ParticleSystem).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Simulate(@t, @withChildren, @restart);

            return(__ret);
        }
        static int _m_SetCustomParticleData(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    System.Collections.Generic.List <UnityEngine.Vector4> customData = (System.Collections.Generic.List <UnityEngine.Vector4>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.Vector4>));
                    UnityEngine.ParticleSystemCustomData streamIndex; translator.Get(L, 3, out streamIndex);

                    __cl_gen_to_be_invoked.SetCustomParticleData(customData, streamIndex);



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


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


            try {
                {
                    UnityEngine.ParticleSystem.Particle[] particles = (UnityEngine.ParticleSystem.Particle[])translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem.Particle[]));

                    int __cl_gen_ret = __cl_gen_to_be_invoked.GetParticles(particles);
                    LuaAPI.xlua_pushinteger(L, __cl_gen_ret);



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


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1)
                {
                    bool gen_ret = gen_to_be_invoked.IsAlive(  );
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
                {
                    bool _withChildren = LuaAPI.lua_toboolean(L, 2);

                    bool gen_ret = gen_to_be_invoked.IsAlive(_withChildren);
                    LuaAPI.lua_pushboolean(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.ParticleSystem.IsAlive!"));
        }
Example #20
0
        static int _m_SetParticles(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    UnityEngine.ParticleSystem.Particle[] _particles = (UnityEngine.ParticleSystem.Particle[])translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem.Particle[]));
                    int _size = LuaAPI.xlua_tointeger(L, 3);

                    gen_to_be_invoked.SetParticles(_particles, _size);



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


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    float _t = (float)LuaAPI.lua_tonumber(L, 2);

                    gen_to_be_invoked.Simulate(_t);



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

                    gen_to_be_invoked.Simulate(_t, _withChildren);



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

                    gen_to_be_invoked.Simulate(_t, _withChildren, _restart);



                    return(0);
                }
                if (gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5))
                {
                    float _t             = (float)LuaAPI.lua_tonumber(L, 2);
                    bool  _withChildren  = LuaAPI.lua_toboolean(L, 3);
                    bool  _restart       = LuaAPI.lua_toboolean(L, 4);
                    bool  _fixedTimeStep = LuaAPI.lua_toboolean(L, 5);

                    gen_to_be_invoked.Simulate(_t, _withChildren, _restart, _fixedTimeStep);



                    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.ParticleSystem.Simulate!"));
        }