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

293 lines
9.3 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 BFBattleEffectNumberWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(BF.BattleEffectNumber);
Utils.BeginObjectRegister(type, L, translator, 0, 4, 3, 3);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowEffectNumber", _m_ShowEffectNumber);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEnabled", _m_SetEnabled);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPause", _m_SetPause);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetResume", _m_SetResume);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "animator", _g_get_animator);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "effectText", _g_get_effectText);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ColorType", _g_get_ColorType);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "animator", _s_set_animator);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "effectText", _s_set_effectText);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "ColorType", _s_set_ColorType);
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 BF.BattleEffectNumber();
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 BF.BattleEffectNumber constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_ShowEffectNumber(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BattleEffectNumber gen_to_be_invoked = (BF.BattleEffectNumber)translator.FastGetCSObj(L, 1);
{
int _effectType = LuaAPI.xlua_tointeger(L, 2);
string _effectNumber = LuaAPI.lua_tostring(L, 3);
gen_to_be_invoked.ShowEffectNumber( _effectType, _effectNumber );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetEnabled(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BattleEffectNumber gen_to_be_invoked = (BF.BattleEffectNumber)translator.FastGetCSObj(L, 1);
{
bool _enabled = LuaAPI.lua_toboolean(L, 2);
gen_to_be_invoked.SetEnabled( _enabled );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetPause(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BattleEffectNumber gen_to_be_invoked = (BF.BattleEffectNumber)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.SetPause( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetResume(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BattleEffectNumber gen_to_be_invoked = (BF.BattleEffectNumber)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.SetResume( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_animator(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BattleEffectNumber gen_to_be_invoked = (BF.BattleEffectNumber)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.animator);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_effectText(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BattleEffectNumber gen_to_be_invoked = (BF.BattleEffectNumber)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.effectText);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_ColorType(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BattleEffectNumber gen_to_be_invoked = (BF.BattleEffectNumber)translator.FastGetCSObj(L, 1);
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ColorType);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_animator(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BattleEffectNumber gen_to_be_invoked = (BF.BattleEffectNumber)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.animator = (UnityEngine.Animator)translator.GetObject(L, 2, typeof(UnityEngine.Animator));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_effectText(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BattleEffectNumber gen_to_be_invoked = (BF.BattleEffectNumber)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.effectText = (TMPro.TextMeshProUGUI)translator.GetObject(L, 2, typeof(TMPro.TextMeshProUGUI));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_ColorType(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.BattleEffectNumber gen_to_be_invoked = (BF.BattleEffectNumber)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.ColorType = LuaAPI.xlua_tointeger(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
}
}