#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 UnityEngineParticleSystemShapeModuleWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(UnityEngine.ParticleSystem.ShapeModule); Utils.BeginObjectRegister(type, L, translator, 0, 0, 45, 45); Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled); Utils.RegisterFunc(L, Utils.GETTER_IDX, "shapeType", _g_get_shapeType); Utils.RegisterFunc(L, Utils.GETTER_IDX, "randomDirectionAmount", _g_get_randomDirectionAmount); Utils.RegisterFunc(L, Utils.GETTER_IDX, "sphericalDirectionAmount", _g_get_sphericalDirectionAmount); Utils.RegisterFunc(L, Utils.GETTER_IDX, "randomPositionAmount", _g_get_randomPositionAmount); Utils.RegisterFunc(L, Utils.GETTER_IDX, "alignToDirection", _g_get_alignToDirection); Utils.RegisterFunc(L, Utils.GETTER_IDX, "radius", _g_get_radius); Utils.RegisterFunc(L, Utils.GETTER_IDX, "radiusMode", _g_get_radiusMode); Utils.RegisterFunc(L, Utils.GETTER_IDX, "radiusSpread", _g_get_radiusSpread); Utils.RegisterFunc(L, Utils.GETTER_IDX, "radiusSpeed", _g_get_radiusSpeed); Utils.RegisterFunc(L, Utils.GETTER_IDX, "radiusSpeedMultiplier", _g_get_radiusSpeedMultiplier); Utils.RegisterFunc(L, Utils.GETTER_IDX, "radiusThickness", _g_get_radiusThickness); Utils.RegisterFunc(L, Utils.GETTER_IDX, "angle", _g_get_angle); Utils.RegisterFunc(L, Utils.GETTER_IDX, "length", _g_get_length); Utils.RegisterFunc(L, Utils.GETTER_IDX, "boxThickness", _g_get_boxThickness); Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshShapeType", _g_get_meshShapeType); Utils.RegisterFunc(L, Utils.GETTER_IDX, "mesh", _g_get_mesh); Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshRenderer", _g_get_meshRenderer); Utils.RegisterFunc(L, Utils.GETTER_IDX, "skinnedMeshRenderer", _g_get_skinnedMeshRenderer); Utils.RegisterFunc(L, Utils.GETTER_IDX, "sprite", _g_get_sprite); Utils.RegisterFunc(L, Utils.GETTER_IDX, "spriteRenderer", _g_get_spriteRenderer); Utils.RegisterFunc(L, Utils.GETTER_IDX, "useMeshMaterialIndex", _g_get_useMeshMaterialIndex); Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshMaterialIndex", _g_get_meshMaterialIndex); Utils.RegisterFunc(L, Utils.GETTER_IDX, "useMeshColors", _g_get_useMeshColors); Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalOffset", _g_get_normalOffset); Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshSpawnMode", _g_get_meshSpawnMode); Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshSpawnSpread", _g_get_meshSpawnSpread); Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshSpawnSpeed", _g_get_meshSpawnSpeed); Utils.RegisterFunc(L, Utils.GETTER_IDX, "meshSpawnSpeedMultiplier", _g_get_meshSpawnSpeedMultiplier); Utils.RegisterFunc(L, Utils.GETTER_IDX, "arc", _g_get_arc); Utils.RegisterFunc(L, Utils.GETTER_IDX, "arcMode", _g_get_arcMode); Utils.RegisterFunc(L, Utils.GETTER_IDX, "arcSpread", _g_get_arcSpread); Utils.RegisterFunc(L, Utils.GETTER_IDX, "arcSpeed", _g_get_arcSpeed); Utils.RegisterFunc(L, Utils.GETTER_IDX, "arcSpeedMultiplier", _g_get_arcSpeedMultiplier); Utils.RegisterFunc(L, Utils.GETTER_IDX, "donutRadius", _g_get_donutRadius); Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); Utils.RegisterFunc(L, Utils.GETTER_IDX, "rotation", _g_get_rotation); Utils.RegisterFunc(L, Utils.GETTER_IDX, "scale", _g_get_scale); Utils.RegisterFunc(L, Utils.GETTER_IDX, "texture", _g_get_texture); Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureClipChannel", _g_get_textureClipChannel); Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureClipThreshold", _g_get_textureClipThreshold); Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureColorAffectsParticles", _g_get_textureColorAffectsParticles); Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureAlphaAffectsParticles", _g_get_textureAlphaAffectsParticles); Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureBilinearFiltering", _g_get_textureBilinearFiltering); Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureUVChannel", _g_get_textureUVChannel); Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled); Utils.RegisterFunc(L, Utils.SETTER_IDX, "shapeType", _s_set_shapeType); Utils.RegisterFunc(L, Utils.SETTER_IDX, "randomDirectionAmount", _s_set_randomDirectionAmount); Utils.RegisterFunc(L, Utils.SETTER_IDX, "sphericalDirectionAmount", _s_set_sphericalDirectionAmount); Utils.RegisterFunc(L, Utils.SETTER_IDX, "randomPositionAmount", _s_set_randomPositionAmount); Utils.RegisterFunc(L, Utils.SETTER_IDX, "alignToDirection", _s_set_alignToDirection); Utils.RegisterFunc(L, Utils.SETTER_IDX, "radius", _s_set_radius); Utils.RegisterFunc(L, Utils.SETTER_IDX, "radiusMode", _s_set_radiusMode); Utils.RegisterFunc(L, Utils.SETTER_IDX, "radiusSpread", _s_set_radiusSpread); Utils.RegisterFunc(L, Utils.SETTER_IDX, "radiusSpeed", _s_set_radiusSpeed); Utils.RegisterFunc(L, Utils.SETTER_IDX, "radiusSpeedMultiplier", _s_set_radiusSpeedMultiplier); Utils.RegisterFunc(L, Utils.SETTER_IDX, "radiusThickness", _s_set_radiusThickness); Utils.RegisterFunc(L, Utils.SETTER_IDX, "angle", _s_set_angle); Utils.RegisterFunc(L, Utils.SETTER_IDX, "length", _s_set_length); Utils.RegisterFunc(L, Utils.SETTER_IDX, "boxThickness", _s_set_boxThickness); Utils.RegisterFunc(L, Utils.SETTER_IDX, "meshShapeType", _s_set_meshShapeType); Utils.RegisterFunc(L, Utils.SETTER_IDX, "mesh", _s_set_mesh); Utils.RegisterFunc(L, Utils.SETTER_IDX, "meshRenderer", _s_set_meshRenderer); Utils.RegisterFunc(L, Utils.SETTER_IDX, "skinnedMeshRenderer", _s_set_skinnedMeshRenderer); Utils.RegisterFunc(L, Utils.SETTER_IDX, "sprite", _s_set_sprite); Utils.RegisterFunc(L, Utils.SETTER_IDX, "spriteRenderer", _s_set_spriteRenderer); Utils.RegisterFunc(L, Utils.SETTER_IDX, "useMeshMaterialIndex", _s_set_useMeshMaterialIndex); Utils.RegisterFunc(L, Utils.SETTER_IDX, "meshMaterialIndex", _s_set_meshMaterialIndex); Utils.RegisterFunc(L, Utils.SETTER_IDX, "useMeshColors", _s_set_useMeshColors); Utils.RegisterFunc(L, Utils.SETTER_IDX, "normalOffset", _s_set_normalOffset); Utils.RegisterFunc(L, Utils.SETTER_IDX, "meshSpawnMode", _s_set_meshSpawnMode); Utils.RegisterFunc(L, Utils.SETTER_IDX, "meshSpawnSpread", _s_set_meshSpawnSpread); Utils.RegisterFunc(L, Utils.SETTER_IDX, "meshSpawnSpeed", _s_set_meshSpawnSpeed); Utils.RegisterFunc(L, Utils.SETTER_IDX, "meshSpawnSpeedMultiplier", _s_set_meshSpawnSpeedMultiplier); Utils.RegisterFunc(L, Utils.SETTER_IDX, "arc", _s_set_arc); Utils.RegisterFunc(L, Utils.SETTER_IDX, "arcMode", _s_set_arcMode); Utils.RegisterFunc(L, Utils.SETTER_IDX, "arcSpread", _s_set_arcSpread); Utils.RegisterFunc(L, Utils.SETTER_IDX, "arcSpeed", _s_set_arcSpeed); Utils.RegisterFunc(L, Utils.SETTER_IDX, "arcSpeedMultiplier", _s_set_arcSpeedMultiplier); Utils.RegisterFunc(L, Utils.SETTER_IDX, "donutRadius", _s_set_donutRadius); Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); Utils.RegisterFunc(L, Utils.SETTER_IDX, "rotation", _s_set_rotation); Utils.RegisterFunc(L, Utils.SETTER_IDX, "scale", _s_set_scale); Utils.RegisterFunc(L, Utils.SETTER_IDX, "texture", _s_set_texture); Utils.RegisterFunc(L, Utils.SETTER_IDX, "textureClipChannel", _s_set_textureClipChannel); Utils.RegisterFunc(L, Utils.SETTER_IDX, "textureClipThreshold", _s_set_textureClipThreshold); Utils.RegisterFunc(L, Utils.SETTER_IDX, "textureColorAffectsParticles", _s_set_textureColorAffectsParticles); Utils.RegisterFunc(L, Utils.SETTER_IDX, "textureAlphaAffectsParticles", _s_set_textureAlphaAffectsParticles); Utils.RegisterFunc(L, Utils.SETTER_IDX, "textureBilinearFiltering", _s_set_textureBilinearFiltering); Utils.RegisterFunc(L, Utils.SETTER_IDX, "textureUVChannel", _s_set_textureUVChannel); 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.ShapeModule)); 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.ShapeModule constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_enabled(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule 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_shapeType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.shapeType); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_randomDirectionAmount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.randomDirectionAmount); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_sphericalDirectionAmount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.sphericalDirectionAmount); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_randomPositionAmount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.randomPositionAmount); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_alignToDirection(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.alignToDirection); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_radius(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radius); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_radiusMode(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.radiusMode); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_radiusSpread(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radiusSpread); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_radiusSpeed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.radiusSpeed); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_radiusSpeedMultiplier(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radiusSpeedMultiplier); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_radiusThickness(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.radiusThickness); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_angle(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.angle); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_length(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.length); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_boxThickness(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.PushUnityEngineVector3(L, gen_to_be_invoked.boxThickness); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_meshShapeType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.meshShapeType); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_mesh(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.mesh); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_meshRenderer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.meshRenderer); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_skinnedMeshRenderer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.skinnedMeshRenderer); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_sprite(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.sprite); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_spriteRenderer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.spriteRenderer); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_useMeshMaterialIndex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useMeshMaterialIndex); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_meshMaterialIndex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.meshMaterialIndex); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_useMeshColors(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.useMeshColors); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_normalOffset(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.normalOffset); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_meshSpawnMode(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.meshSpawnMode); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_meshSpawnSpread(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.meshSpawnSpread); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_meshSpawnSpeed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.meshSpawnSpeed); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_meshSpawnSpeedMultiplier(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.meshSpawnSpeedMultiplier); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_arc(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.arc); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_arcMode(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.arcMode); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_arcSpread(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.arcSpread); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_arcSpeed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.arcSpeed); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_arcSpeedMultiplier(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.arcSpeedMultiplier); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_donutRadius(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.donutRadius); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_position(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.PushUnityEngineVector3(L, gen_to_be_invoked.position); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_rotation(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.PushUnityEngineVector3(L, gen_to_be_invoked.rotation); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_scale(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.PushUnityEngineVector3(L, gen_to_be_invoked.scale); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_texture(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.texture); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_textureClipChannel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.textureClipChannel); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_textureClipThreshold(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushnumber(L, gen_to_be_invoked.textureClipThreshold); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_textureColorAffectsParticles(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.textureColorAffectsParticles); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_textureAlphaAffectsParticles(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.textureAlphaAffectsParticles); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_textureBilinearFiltering(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.textureBilinearFiltering); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_textureUVChannel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.textureUVChannel); } 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.ShapeModule 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_shapeType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.ParticleSystemShapeType gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.shapeType = 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_randomDirectionAmount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.randomDirectionAmount = (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_sphericalDirectionAmount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.sphericalDirectionAmount = (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_randomPositionAmount(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.randomPositionAmount = (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_alignToDirection(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.alignToDirection = 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_radius(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.radius = (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_radiusMode(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.ParticleSystemShapeMultiModeValue gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.radiusMode = 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_radiusSpread(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.radiusSpread = (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_radiusSpeed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule 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.radiusSpeed = 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_radiusSpeedMultiplier(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.radiusSpeedMultiplier = (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_radiusThickness(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.radiusThickness = (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_angle(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.angle = (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_length(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.length = (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_boxThickness(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.boxThickness = 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_meshShapeType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.ParticleSystemMeshShapeType gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.meshShapeType = 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_mesh(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh)); 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_meshRenderer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.meshRenderer = (UnityEngine.MeshRenderer)translator.GetObject(L, 2, typeof(UnityEngine.MeshRenderer)); 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_skinnedMeshRenderer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.skinnedMeshRenderer = (UnityEngine.SkinnedMeshRenderer)translator.GetObject(L, 2, typeof(UnityEngine.SkinnedMeshRenderer)); 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_sprite(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.sprite = (UnityEngine.Sprite)translator.GetObject(L, 2, typeof(UnityEngine.Sprite)); 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_spriteRenderer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.spriteRenderer = (UnityEngine.SpriteRenderer)translator.GetObject(L, 2, typeof(UnityEngine.SpriteRenderer)); 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_useMeshMaterialIndex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.useMeshMaterialIndex = 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_meshMaterialIndex(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.meshMaterialIndex = 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_useMeshColors(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.useMeshColors = 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_normalOffset(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.normalOffset = (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_meshSpawnMode(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.ParticleSystemShapeMultiModeValue gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.meshSpawnMode = 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_meshSpawnSpread(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.meshSpawnSpread = (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_meshSpawnSpeed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule 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.meshSpawnSpeed = 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_meshSpawnSpeedMultiplier(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.meshSpawnSpeedMultiplier = (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_arc(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.arc = (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_arcMode(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.ParticleSystemShapeMultiModeValue gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.arcMode = 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_arcSpread(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.arcSpread = (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_arcSpeed(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule 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.arcSpeed = 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_arcSpeedMultiplier(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.arcSpeedMultiplier = (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_donutRadius(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.donutRadius = (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_position(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.position = 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_rotation(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.rotation = 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_scale(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.scale = 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_texture(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.texture = (UnityEngine.Texture2D)translator.GetObject(L, 2, typeof(UnityEngine.Texture2D)); 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_textureClipChannel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.ParticleSystemShapeTextureChannel gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.textureClipChannel = 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_textureClipThreshold(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.textureClipThreshold = (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_textureColorAffectsParticles(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.textureColorAffectsParticles = 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_textureAlphaAffectsParticles(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.textureAlphaAffectsParticles = 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_textureBilinearFiltering(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.textureBilinearFiltering = 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_textureUVChannel(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ParticleSystem.ShapeModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.textureUVChannel = 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; } } }