static int _m_AddInfluence(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked; translator.Get(L, 1, out gen_to_be_invoked); { UnityEngine.ParticleSystemForceField _field = (UnityEngine.ParticleSystemForceField)translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystemForceField)); gen_to_be_invoked.AddInfluence(_field); translator.Update(L, 1, gen_to_be_invoked); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_IsAffectedBy(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked; translator.Get(L, 1, out gen_to_be_invoked); { UnityEngine.ParticleSystemForceField _field = (UnityEngine.ParticleSystemForceField)translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystemForceField)); var gen_ret = gen_to_be_invoked.IsAffectedBy(_field); LuaAPI.lua_pushboolean(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)); } }
static int _m_GetInfluence(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ExternalForcesModule gen_to_be_invoked; translator.Get(L, 1, out gen_to_be_invoked); { int _index = LuaAPI.xlua_tointeger(L, 2); UnityEngine.ParticleSystemForceField gen_ret = gen_to_be_invoked.GetInfluence(_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)); } }
static int _s_set_vectorField(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); gen_to_be_invoked.vectorField = (UnityEngine.Texture3D)translator.GetObject(L, 2, typeof(UnityEngine.Texture3D)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _s_set_multiplyDragByParticleVelocity(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); gen_to_be_invoked.multiplyDragByParticleVelocity = 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_gravityFocus(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); gen_to_be_invoked.gravityFocus = (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_vectorFieldAttraction(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.vectorFieldAttraction); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_vectorFieldAttraction(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystemForceField gen_to_be_invoked = (UnityEngine.ParticleSystemForceField)translator.FastGetCSObj(L, 1); UnityEngine.ParticleSystem.MinMaxCurve gen_value; translator.Get(L, 2, out gen_value); gen_to_be_invoked.vectorFieldAttraction = gen_value; } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { var gen_ret = new UnityEngine.ParticleSystemForceField(); 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.ParticleSystemForceField constructor!")); }
static int _m_RemoveInfluence(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ExternalForcesModule 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.RemoveInfluence(_index); translator.Update(L, 1, gen_to_be_invoked); return(0); } if (gen_param_count == 2 && translator.Assignable <UnityEngine.ParticleSystemForceField>(L, 2)) { UnityEngine.ParticleSystemForceField _field = (UnityEngine.ParticleSystemForceField)translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystemForceField)); gen_to_be_invoked.RemoveInfluence(_field); 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.ExternalForcesModule.RemoveInfluence!")); }