#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_EquipResEquipPartInfoWrap { public static void __Register(RealStatePtr L) { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(MSG_Equip.ResEquipPartInfo); Utils.BeginObjectRegister(type, L, translator, 0, 4, 1, 1); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Excute", _m_Excute); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Send", _m_Send); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReadMessage", _m_ReadMessage); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear); Utils.RegisterFunc(L, Utils.GETTER_IDX, "infos", _g_get_infos); Utils.RegisterFunc(L, Utils.SETTER_IDX, "infos", _s_set_infos); Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0); Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MsgID", MSG_Equip.ResEquipPartInfo.MsgID); 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.ResEquipPartInfo gen_ret = new MSG_Equip.ResEquipPartInfo(); 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.ResEquipPartInfo constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Excute(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Equip.ResEquipPartInfo gen_to_be_invoked = (MSG_Equip.ResEquipPartInfo)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_Send(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Equip.ResEquipPartInfo gen_to_be_invoked = (MSG_Equip.ResEquipPartInfo)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_ReadMessage(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Equip.ResEquipPartInfo gen_to_be_invoked = (MSG_Equip.ResEquipPartInfo)translator.FastGetCSObj(L, 1); { byte[] _bytes = LuaAPI.lua_tobytes(L, 2); gen_to_be_invoked.ReadMessage( _bytes ); return 0; } } 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.ResEquipPartInfo gen_to_be_invoked = (MSG_Equip.ResEquipPartInfo)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_infos(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Equip.ResEquipPartInfo gen_to_be_invoked = (MSG_Equip.ResEquipPartInfo)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.infos); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_infos(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Equip.ResEquipPartInfo gen_to_be_invoked = (MSG_Equip.ResEquipPartInfo)translator.FastGetCSObj(L, 1); gen_to_be_invoked.infos = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }