#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Generic; namespace XLua.CSObjectWrap { using Utils = XLua.Utils; public class UnityEngineParticleSystemCollisionModuleWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(UnityEngine.ParticleSystem.CollisionModule); Utils.BeginObjectRegister(type, L, translator, 0, 4, 23, 22); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddPlane", _m_AddPlane); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemovePlane", _m_RemovePlane); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPlane", _m_SetPlane); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPlane", _m_GetPlane); Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); Utils.RegisterFunc(L, Utils.GETTER_IDX, "type", _g_get_type); Utils.RegisterFunc(L, Utils.GETTER_IDX, "mode", _g_get_mode); Utils.RegisterFunc(L, Utils.GETTER_IDX, "dampen", _g_get_dampen); Utils.RegisterFunc(L, Utils.GETTER_IDX, "dampenMultiplier", _g_get_dampenMultiplier); Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounce", _g_get_bounce); Utils.RegisterFunc(L, Utils.GETTER_IDX, "bounceMultiplier", _g_get_bounceMultiplier); Utils.RegisterFunc(L, Utils.GETTER_IDX, "lifetimeLoss", _g_get_lifetimeLoss); Utils.RegisterFunc(L, Utils.GETTER_IDX, "lifetimeLossMultiplier", _g_get_lifetimeLossMultiplier); Utils.RegisterFunc(L, Utils.GETTER_IDX, "minKillSpeed", _g_get_minKillSpeed); Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxKillSpeed", _g_get_maxKillSpeed); Utils.RegisterFunc(L, Utils.GETTER_IDX, "collidesWith", _g_get_collidesWith); Utils.RegisterFunc(L, Utils.GETTER_IDX, "enableDynamicColliders", _g_get_enableDynamicColliders); Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxCollisionShapes", _g_get_maxCollisionShapes); Utils.RegisterFunc(L, Utils.GETTER_IDX, "quality", _g_get_quality); Utils.RegisterFunc(L, Utils.GETTER_IDX, "voxelSize", _g_get_voxelSize); Utils.RegisterFunc(L, Utils.GETTER_IDX, "radiusScale", _g_get_radiusScale); Utils.RegisterFunc(L, Utils.GETTER_IDX, "sendCollisionMessages", _g_get_sendCollisionMessages); Utils.RegisterFunc(L, Utils.GETTER_IDX, "colliderForce", _g_get_colliderForce); Utils.RegisterFunc(L, Utils.GETTER_IDX, "multiplyColliderForceByCollisionAngle", _g_get_multiplyColliderForceByCollisionAngle); Utils.RegisterFunc(L, Utils.GETTER_IDX, "multiplyColliderForceByParticleSpeed", _g_get_multiplyColliderForceByParticleSpeed); Utils.RegisterFunc(L, Utils.GETTER_IDX, "multiplyColliderForceByParticleSize", _g_get_multiplyColliderForceByParticleSize); Utils.RegisterFunc(L, Utils.GETTER_IDX, "planeCount", _g_get_planeCount); Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); Utils.RegisterFunc(L, Utils.SETTER_IDX, "type", _s_set_type); Utils.RegisterFunc(L, Utils.SETTER_IDX, "mode", _s_set_mode); Utils.RegisterFunc(L, Utils.SETTER_IDX, "dampen", _s_set_dampen); Utils.RegisterFunc(L, Utils.SETTER_IDX, "dampenMultiplier", _s_set_dampenMultiplier); Utils.RegisterFunc(L, Utils.SETTER_IDX, "bounce", _s_set_bounce); Utils.RegisterFunc(L, Utils.SETTER_IDX, "bounceMultiplier", _s_set_bounceMultiplier); Utils.RegisterFunc(L, Utils.SETTER_IDX, "lifetimeLoss", _s_set_lifetimeLoss); Utils.RegisterFunc(L, Utils.SETTER_IDX, "lifetimeLossMultiplier", _s_set_lifetimeLossMultiplier); Utils.RegisterFunc(L, Utils.SETTER_IDX, "minKillSpeed", _s_set_minKillSpeed); Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxKillSpeed", _s_set_maxKillSpeed); Utils.RegisterFunc(L, Utils.SETTER_IDX, "collidesWith", _s_set_collidesWith); Utils.RegisterFunc(L, Utils.SETTER_IDX, "enableDynamicColliders", _s_set_enableDynamicColliders); Utils.RegisterFunc(L, Utils.SETTER_IDX, "maxCollisionShapes", _s_set_maxCollisionShapes); Utils.RegisterFunc(L, Utils.SETTER_IDX, "quality", _s_set_quality); Utils.RegisterFunc(L, Utils.SETTER_IDX, "voxelSize", _s_set_voxelSize); Utils.RegisterFunc(L, Utils.SETTER_IDX, "radiusScale", _s_set_radiusScale); Utils.RegisterFunc(L, Utils.SETTER_IDX, "sendCollisionMessages", _s_set_sendCollisionMessages); Utils.RegisterFunc(L, Utils.SETTER_IDX, "colliderForce", _s_set_colliderForce); Utils.RegisterFunc(L, Utils.SETTER_IDX, "multiplyColliderForceByCollisionAngle", _s_set_multiplyColliderForceByCollisionAngle); Utils.RegisterFunc(L, Utils.SETTER_IDX, "multiplyColliderForceByParticleSpeed", _s_set_multiplyColliderForceByParticleSpeed); Utils.RegisterFunc(L, Utils.SETTER_IDX, "multiplyColliderForceByParticleSize", _s_set_multiplyColliderForceByParticleSize); Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); Utils.EndClassRegister(type, L, translator); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { translator.Push(L, default(UnityEngine.ParticleSystem.CollisionModule)); 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.CollisionModule constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_AddPlane(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); { UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); gen_to_be_invoked.AddPlane( _transform ); translator.Update(L, 1, gen_to_be_invoked); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RemovePlane(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int _index = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.RemovePlane( _index ); translator.Update(L, 1, gen_to_be_invoked); return 0; } if(gen_param_count == 2&& translator.Assignable(L, 2)) { UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); gen_to_be_invoked.RemovePlane( _transform ); translator.Update(L, 1, gen_to_be_invoked); 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.CollisionModule.RemovePlane!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetPlane(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); { int _index = LuaAPI.xlua_tointeger(L, 2); UnityEngine.Transform _transform = (UnityEngine.Transform)translator.GetObject(L, 3, typeof(UnityEngine.Transform)); gen_to_be_invoked.SetPlane( _index, _transform ); translator.Update(L, 1, gen_to_be_invoked); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetPlane(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); { int _index = LuaAPI.xlua_tointeger(L, 2); var gen_ret = gen_to_be_invoked.GetPlane( _index ); translator.Push(L, gen_ret); translator.Update(L, 1, gen_to_be_invoked); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_enabled(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_type(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.type); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_mode(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.mode); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_dampen(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.dampen); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_dampenMultiplier(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.dampenMultiplier); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_bounce(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.bounce); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_bounceMultiplier(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.bounceMultiplier); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_lifetimeLoss(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.lifetimeLoss); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_lifetimeLossMultiplier(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lifetimeLossMultiplier); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_minKillSpeed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.minKillSpeed); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_maxKillSpeed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.maxKillSpeed); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_collidesWith(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.collidesWith); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_enableDynamicColliders(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enableDynamicColliders); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_maxCollisionShapes(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxCollisionShapes); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_quality(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.quality); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_voxelSize(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.voxelSize); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_radiusScale(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radiusScale); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_sendCollisionMessages(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.sendCollisionMessages); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_colliderForce(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.colliderForce); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_multiplyColliderForceByCollisionAngle(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.multiplyColliderForceByCollisionAngle); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_multiplyColliderForceByParticleSpeed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.multiplyColliderForceByParticleSpeed); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_multiplyColliderForceByParticleSize(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.multiplyColliderForceByParticleSize); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_planeCount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.planeCount); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_enabled(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.enabled = LuaAPI.lua_toboolean(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_type(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.ParticleSystemCollisionType gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.type = gen_value; translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_mode(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.ParticleSystemCollisionMode gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.mode = gen_value; translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_dampen(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.dampen = gen_value; translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_dampenMultiplier(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.dampenMultiplier = (float)LuaAPI.lua_tonumber(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_bounce(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.bounce = gen_value; translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_bounceMultiplier(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.bounceMultiplier = (float)LuaAPI.lua_tonumber(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_lifetimeLoss(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.lifetimeLoss = gen_value; translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_lifetimeLossMultiplier(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.lifetimeLossMultiplier = (float)LuaAPI.lua_tonumber(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_minKillSpeed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.minKillSpeed = (float)LuaAPI.lua_tonumber(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_maxKillSpeed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.maxKillSpeed = (float)LuaAPI.lua_tonumber(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_collidesWith(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.LayerMask gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.collidesWith = gen_value; translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_enableDynamicColliders(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.enableDynamicColliders = LuaAPI.lua_toboolean(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_maxCollisionShapes(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.maxCollisionShapes = LuaAPI.xlua_tointeger(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_quality(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.ParticleSystemCollisionQuality gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.quality = gen_value; translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_voxelSize(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.voxelSize = (float)LuaAPI.lua_tonumber(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_radiusScale(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.radiusScale = (float)LuaAPI.lua_tonumber(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_sendCollisionMessages(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.sendCollisionMessages = LuaAPI.lua_toboolean(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_colliderForce(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.colliderForce = (float)LuaAPI.lua_tonumber(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_multiplyColliderForceByCollisionAngle(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.multiplyColliderForceByCollisionAngle = LuaAPI.lua_toboolean(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_multiplyColliderForceByParticleSpeed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.multiplyColliderForceByParticleSpeed = LuaAPI.lua_toboolean(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_multiplyColliderForceByParticleSize(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.CollisionModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.multiplyColliderForceByParticleSize = LuaAPI.lua_toboolean(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }