c1_unity/Assets/XLua/Gen/UnityEngine_ParticleSystem_TriggerModuleWrap.cs
2025-11-03 15:00:43 +08:00

476 lines
18 KiB
C#

#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 UnityEngineParticleSystemTriggerModuleWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(UnityEngine.ParticleSystem.TriggerModule);
Utils.BeginObjectRegister(type, L, translator, 0, 4, 8, 7);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddCollider", _m_AddCollider);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveCollider", _m_RemoveCollider);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCollider", _m_SetCollider);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCollider", _m_GetCollider);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "inside", _g_get_inside);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "outside", _g_get_outside);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "enter", _g_get_enter);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "exit", _g_get_exit);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "colliderQueryMode", _g_get_colliderQueryMode);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "radiusScale", _g_get_radiusScale);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "colliderCount", _g_get_colliderCount);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "inside", _s_set_inside);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "outside", _s_set_outside);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "enter", _s_set_enter);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "exit", _s_set_exit);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "colliderQueryMode", _s_set_colliderQueryMode);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "radiusScale", _s_set_radiusScale);
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.TriggerModule));
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.TriggerModule constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_AddCollider(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
{
UnityEngine.Component _collider = (UnityEngine.Component)translator.GetObject(L, 2, typeof(UnityEngine.Component));
gen_to_be_invoked.AddCollider( _collider );
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_RemoveCollider(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.ParticleSystem.TriggerModule 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.RemoveCollider( _index );
translator.Update(L, 1, gen_to_be_invoked);
return 0;
}
if(gen_param_count == 2&& translator.Assignable<UnityEngine.Component>(L, 2))
{
UnityEngine.Component _collider = (UnityEngine.Component)translator.GetObject(L, 2, typeof(UnityEngine.Component));
gen_to_be_invoked.RemoveCollider( _collider );
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.TriggerModule.RemoveCollider!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetCollider(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
{
int _index = LuaAPI.xlua_tointeger(L, 2);
UnityEngine.Component _collider = (UnityEngine.Component)translator.GetObject(L, 3, typeof(UnityEngine.Component));
gen_to_be_invoked.SetCollider( _index, _collider );
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_GetCollider(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.ParticleSystem.TriggerModule 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.GetCollider( _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.TriggerModule 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_inside(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
translator.Push(L, gen_to_be_invoked.inside);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_outside(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
translator.Push(L, gen_to_be_invoked.outside);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_enter(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
translator.Push(L, gen_to_be_invoked.enter);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_exit(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
translator.Push(L, gen_to_be_invoked.exit);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_colliderQueryMode(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
translator.Push(L, gen_to_be_invoked.colliderQueryMode);
} 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.TriggerModule 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_colliderCount(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.colliderCount);
} 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.TriggerModule 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_inside(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
UnityEngine.ParticleSystemOverlapAction gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.inside = 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_outside(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
UnityEngine.ParticleSystemOverlapAction gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.outside = 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_enter(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
UnityEngine.ParticleSystemOverlapAction gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.enter = 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_exit(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
UnityEngine.ParticleSystemOverlapAction gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.exit = 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_colliderQueryMode(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.ParticleSystem.TriggerModule gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
UnityEngine.ParticleSystemColliderQueryMode gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.colliderQueryMode = 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_radiusScale(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.ParticleSystem.TriggerModule 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;
}
}
}