#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_FriendCommonInfoWrap { public static void __Register(RealStatePtr L) { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(MSG_Friend.CommonInfo); Utils.BeginObjectRegister(type, L, translator, 0, 5, 15, 15); 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, "playerId", _g_get_playerId); Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name); Utils.RegisterFunc(L, Utils.GETTER_IDX, "lv", _g_get_lv); Utils.RegisterFunc(L, Utils.GETTER_IDX, "career", _g_get_career); Utils.RegisterFunc(L, Utils.GETTER_IDX, "isOnline", _g_get_isOnline); Utils.RegisterFunc(L, Utils.GETTER_IDX, "intimacy", _g_get_intimacy); Utils.RegisterFunc(L, Utils.GETTER_IDX, "lastofftime", _g_get_lastofftime); Utils.RegisterFunc(L, Utils.GETTER_IDX, "viplevel", _g_get_viplevel); Utils.RegisterFunc(L, Utils.GETTER_IDX, "hasMarry", _g_get_hasMarry); Utils.RegisterFunc(L, Utils.GETTER_IDX, "isGiveFriendshipPoint", _g_get_isGiveFriendshipPoint); Utils.RegisterFunc(L, Utils.GETTER_IDX, "isReceiveFriendshipPoint", _g_get_isReceiveFriendshipPoint); Utils.RegisterFunc(L, Utils.GETTER_IDX, "isFriendshipPointAward", _g_get_isFriendshipPointAward); Utils.RegisterFunc(L, Utils.GETTER_IDX, "serverId", _g_get_serverId); Utils.RegisterFunc(L, Utils.GETTER_IDX, "isFriend", _g_get_isFriend); Utils.RegisterFunc(L, Utils.GETTER_IDX, "head", _g_get_head); Utils.RegisterFunc(L, Utils.SETTER_IDX, "playerId", _s_set_playerId); Utils.RegisterFunc(L, Utils.SETTER_IDX, "name", _s_set_name); Utils.RegisterFunc(L, Utils.SETTER_IDX, "lv", _s_set_lv); Utils.RegisterFunc(L, Utils.SETTER_IDX, "career", _s_set_career); Utils.RegisterFunc(L, Utils.SETTER_IDX, "isOnline", _s_set_isOnline); Utils.RegisterFunc(L, Utils.SETTER_IDX, "intimacy", _s_set_intimacy); Utils.RegisterFunc(L, Utils.SETTER_IDX, "lastofftime", _s_set_lastofftime); Utils.RegisterFunc(L, Utils.SETTER_IDX, "viplevel", _s_set_viplevel); Utils.RegisterFunc(L, Utils.SETTER_IDX, "hasMarry", _s_set_hasMarry); Utils.RegisterFunc(L, Utils.SETTER_IDX, "isGiveFriendshipPoint", _s_set_isGiveFriendshipPoint); Utils.RegisterFunc(L, Utils.SETTER_IDX, "isReceiveFriendshipPoint", _s_set_isReceiveFriendshipPoint); Utils.RegisterFunc(L, Utils.SETTER_IDX, "isFriendshipPointAward", _s_set_isFriendshipPointAward); Utils.RegisterFunc(L, Utils.SETTER_IDX, "serverId", _s_set_serverId); Utils.RegisterFunc(L, Utils.SETTER_IDX, "isFriend", _s_set_isFriend); Utils.RegisterFunc(L, Utils.SETTER_IDX, "head", _s_set_head); 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_Friend.CommonInfo gen_ret = new MSG_Friend.CommonInfo(); 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_Friend.CommonInfo constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Send(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)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_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)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_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)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_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)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_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)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_playerId(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushuint64(L, gen_to_be_invoked.playerId); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_name(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.name); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_lv(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lv); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_career(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.career); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_isOnline(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isOnline); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_intimacy(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.intimacy); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_lastofftime(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lastofftime); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_viplevel(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.viplevel); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_hasMarry(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.hasMarry); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_isGiveFriendshipPoint(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isGiveFriendshipPoint); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_isReceiveFriendshipPoint(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isReceiveFriendshipPoint); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_isFriendshipPointAward(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isFriendshipPointAward); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_serverId(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.serverId); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_isFriend(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isFriend); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_head(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.head); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_playerId(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); gen_to_be_invoked.playerId = LuaAPI.lua_touint64(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_name(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); gen_to_be_invoked.name = LuaAPI.lua_tostring(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_lv(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); gen_to_be_invoked.lv = 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_career(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); gen_to_be_invoked.career = 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_isOnline(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); gen_to_be_invoked.isOnline = 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_intimacy(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); gen_to_be_invoked.intimacy = 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_lastofftime(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); gen_to_be_invoked.lastofftime = 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_viplevel(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); gen_to_be_invoked.viplevel = 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_hasMarry(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); gen_to_be_invoked.hasMarry = 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_isGiveFriendshipPoint(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); gen_to_be_invoked.isGiveFriendshipPoint = 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_isReceiveFriendshipPoint(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); gen_to_be_invoked.isReceiveFriendshipPoint = 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_isFriendshipPointAward(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); gen_to_be_invoked.isFriendshipPointAward = 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_serverId(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); gen_to_be_invoked.serverId = 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_isFriend(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); gen_to_be_invoked.isFriend = 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_head(RealStatePtr L) { try { ObjectTranslatorChild translator = (ObjectTranslatorChild)ObjectTranslatorPool.Instance.Find(L); MSG_Friend.CommonInfo gen_to_be_invoked = (MSG_Friend.CommonInfo)translator.FastGetCSObj(L, 1); gen_to_be_invoked.head = (MSG_Common.HeadAttribute)translator.GetObject(L, 2, typeof(MSG_Common.HeadAttribute)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }