Files
Main/Assets/GameAssets/Resources/GameUI/XLua/Gen/MSG_Equip_gemPartInfoWrap.cs
2025-01-25 04:38:09 +08:00

355 lines
12 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 MSG_EquipgemPartInfoWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(MSG_Equip.gemPartInfo);
Utils.BeginObjectRegister(type, L, translator, 0, 5, 4, 4);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Send", _m_Send);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Excute", _m_Excute);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReadMessage", _m_ReadMessage);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "WriteMessage", _m_WriteMessage);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "gemIds", _g_get_gemIds);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "jadeIds", _g_get_jadeIds);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "level", _g_get_level);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "exp", _g_get_exp);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "gemIds", _s_set_gemIds);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "jadeIds", _s_set_jadeIds);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "level", _s_set_level);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "exp", _s_set_exp);
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 {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
if(LuaAPI.lua_gettop(L) == 1)
{
MSG_Equip.gemPartInfo gen_ret = new MSG_Equip.gemPartInfo();
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 MSG_Equip.gemPartInfo constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_Send(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
MSG_Equip.gemPartInfo gen_to_be_invoked = (MSG_Equip.gemPartInfo)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.Send( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_Excute(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
MSG_Equip.gemPartInfo gen_to_be_invoked = (MSG_Equip.gemPartInfo)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.Excute( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_ReadMessage(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
MSG_Equip.gemPartInfo gen_to_be_invoked = (MSG_Equip.gemPartInfo)translator.FastGetCSObj(L, 1);
{
int _readPos = LuaAPI.xlua_tointeger(L, 2);
int _totalCount = LuaAPI.xlua_tointeger(L, 3);
gen_to_be_invoked.ReadMessage( ref _readPos, _totalCount );
LuaAPI.xlua_pushinteger(L, _readPos);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_WriteMessage(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
MSG_Equip.gemPartInfo gen_to_be_invoked = (MSG_Equip.gemPartInfo)translator.FastGetCSObj(L, 1);
{
int _fieldNumber = LuaAPI.xlua_tointeger(L, 2);
int gen_ret = gen_to_be_invoked.WriteMessage( _fieldNumber );
LuaAPI.xlua_pushinteger(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_Clear(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
MSG_Equip.gemPartInfo gen_to_be_invoked = (MSG_Equip.gemPartInfo)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.Clear( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_gemIds(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
MSG_Equip.gemPartInfo gen_to_be_invoked = (MSG_Equip.gemPartInfo)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.gemIds);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_jadeIds(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
MSG_Equip.gemPartInfo gen_to_be_invoked = (MSG_Equip.gemPartInfo)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.jadeIds);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_level(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
MSG_Equip.gemPartInfo gen_to_be_invoked = (MSG_Equip.gemPartInfo)translator.FastGetCSObj(L, 1);
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.level);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_exp(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
MSG_Equip.gemPartInfo gen_to_be_invoked = (MSG_Equip.gemPartInfo)translator.FastGetCSObj(L, 1);
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.exp);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_gemIds(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
MSG_Equip.gemPartInfo gen_to_be_invoked = (MSG_Equip.gemPartInfo)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.gemIds = (System.Collections.Generic.List<int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<int>));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_jadeIds(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
MSG_Equip.gemPartInfo gen_to_be_invoked = (MSG_Equip.gemPartInfo)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.jadeIds = (System.Collections.Generic.List<int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<int>));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_level(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
MSG_Equip.gemPartInfo gen_to_be_invoked = (MSG_Equip.gemPartInfo)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.level = LuaAPI.xlua_tointeger(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_exp(RealStatePtr L)
{
try {
ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L);
MSG_Equip.gemPartInfo gen_to_be_invoked = (MSG_Equip.gemPartInfo)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.exp = LuaAPI.xlua_tointeger(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
}
}