#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 UnityEngineParticleSystemExternalForcesModuleWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(UnityEngine.ParticleSystem.ExternalForcesModule); Utils.BeginObjectRegister(type, L, translator, 0, 6, 6, 5); Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsAffectedBy", _m_IsAffectedBy); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddInfluence", _m_AddInfluence); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveInfluence", _m_RemoveInfluence); Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAllInfluences", _m_RemoveAllInfluences); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetInfluence", _m_SetInfluence); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetInfluence", _m_GetInfluence); Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); Utils.RegisterFunc(L, Utils.GETTER_IDX, "multiplier", _g_get_multiplier); Utils.RegisterFunc(L, Utils.GETTER_IDX, "multiplierCurve", _g_get_multiplierCurve); Utils.RegisterFunc(L, Utils.GETTER_IDX, "influenceFilter", _g_get_influenceFilter); Utils.RegisterFunc(L, Utils.GETTER_IDX, "influenceMask", _g_get_influenceMask); Utils.RegisterFunc(L, Utils.GETTER_IDX, "influenceCount", _g_get_influenceCount); Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); Utils.RegisterFunc(L, Utils.SETTER_IDX, "multiplier", _s_set_multiplier); Utils.RegisterFunc(L, Utils.SETTER_IDX, "multiplierCurve", _s_set_multiplierCurve); Utils.RegisterFunc(L, Utils.SETTER_IDX, "influenceFilter", _s_set_influenceFilter); Utils.RegisterFunc(L, Utils.SETTER_IDX, "influenceMask", _s_set_influenceMask); 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.ExternalForcesModule)); 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.ExternalForcesModule constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 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); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 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); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 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(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!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_RemoveAllInfluences(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); { gen_to_be_invoked.RemoveAllInfluences( ); 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_SetInfluence(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 _field = (UnityEngine.ParticleSystemForceField)translator.GetObject(L, 3, typeof(UnityEngine.ParticleSystemForceField)); gen_to_be_invoked.SetInfluence( _index, _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); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] 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); var 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); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_enabled(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); 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_multiplier(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); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.multiplier); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_multiplierCurve(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); translator.Push(L, gen_to_be_invoked.multiplierCurve); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_influenceFilter(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); translator.Push(L, gen_to_be_invoked.influenceFilter); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_influenceMask(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); translator.Push(L, gen_to_be_invoked.influenceMask); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_influenceCount(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); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.influenceCount); } 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.ExternalForcesModule 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_multiplier(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); gen_to_be_invoked.multiplier = (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_multiplierCurve(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.ParticleSystem.MinMaxCurve gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.multiplierCurve = 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_influenceFilter(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.ParticleSystemGameObjectFilter gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.influenceFilter = 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_influenceMask(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.LayerMask gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.influenceMask = 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; } } }