c1_unity/Assets/XLua/Gen/ParticleUVAnimationWrap.cs
2023-04-03 11:04:31 +08:00

238 lines
7.7 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 ParticleUVAnimationWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(ParticleUVAnimation);
Utils.BeginObjectRegister(type, L, translator, 0, 1, 4, 4);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "particle", _g_get_particle);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "texST", _g_get_texST);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "running", _g_get_running);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "fps", _g_get_fps);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "particle", _s_set_particle);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "texST", _s_set_texST);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "running", _s_set_running);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "fps", _s_set_fps);
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)
{
var gen_ret = new ParticleUVAnimation();
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 ParticleUVAnimation constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_Play(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
ParticleUVAnimation gen_to_be_invoked = (ParticleUVAnimation)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.Play( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_particle(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
ParticleUVAnimation gen_to_be_invoked = (ParticleUVAnimation)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.particle);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_texST(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
ParticleUVAnimation gen_to_be_invoked = (ParticleUVAnimation)translator.FastGetCSObj(L, 1);
translator.PushUnityEngineVector4(L, gen_to_be_invoked.texST);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_running(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
ParticleUVAnimation gen_to_be_invoked = (ParticleUVAnimation)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.running);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_fps(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
ParticleUVAnimation gen_to_be_invoked = (ParticleUVAnimation)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.fps);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_particle(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
ParticleUVAnimation gen_to_be_invoked = (ParticleUVAnimation)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.particle = (UnityEngine.ParticleSystem)translator.GetObject(L, 2, typeof(UnityEngine.ParticleSystem));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_texST(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
ParticleUVAnimation gen_to_be_invoked = (ParticleUVAnimation)translator.FastGetCSObj(L, 1);
UnityEngine.Vector4 gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.texST = gen_value;
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_running(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
ParticleUVAnimation gen_to_be_invoked = (ParticleUVAnimation)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.running = LuaAPI.lua_toboolean(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_fps(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
ParticleUVAnimation gen_to_be_invoked = (ParticleUVAnimation)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.fps = (float)LuaAPI.lua_tonumber(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
}
}