static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { xc.FriendsNet __cl_gen_ret = new xc.FriendsNet(); translator.Push(L, __cl_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 xc.FriendsNet constructor!")); }
static int _m_RegisterMessages(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.FriendsNet __cl_gen_to_be_invoked = (xc.FriendsNet)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.RegisterMessages( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SendAddFriendRequest(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.FriendsNet __cl_gen_to_be_invoked = (xc.FriendsNet)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 4 && translator.Assignable <xc.FriendType>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { xc.FriendType type; translator.Get(L, 2, out type); uint id = LuaAPI.xlua_touint(L, 3); uint targetLv = LuaAPI.xlua_touint(L, 4); __cl_gen_to_be_invoked.SendAddFriendRequest(type, id, targetLv); return(0); } if (__gen_param_count == 3 && translator.Assignable <xc.FriendType>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { xc.FriendType type; translator.Get(L, 2, out type); uint id = LuaAPI.xlua_touint(L, 3); __cl_gen_to_be_invoked.SendAddFriendRequest(type, id); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to xc.FriendsNet.SendAddFriendRequest!")); }
static int _m_WatchPlayer(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.FriendsNet __cl_gen_to_be_invoked = (xc.FriendsNet)translator.FastGetCSObj(L, 1); try { { uint uuid = LuaAPI.xlua_touint(L, 2); __cl_gen_to_be_invoked.WatchPlayer(uuid); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_SearchFriend(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.FriendsNet __cl_gen_to_be_invoked = (xc.FriendsNet)translator.FastGetCSObj(L, 1); try { { string name = LuaAPI.lua_tostring(L, 2); __cl_gen_to_be_invoked.SearchFriend(name); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_DeleteFriend(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.FriendsNet __cl_gen_to_be_invoked = (xc.FriendsNet)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { uint uid = LuaAPI.xlua_touint(L, 2); __cl_gen_to_be_invoked.DeleteFriend(uid); return(0); } if (__gen_param_count == 3 && translator.Assignable <xc.FriendType>(L, 2) && translator.Assignable <xc.FriendsInfo>(L, 3)) { xc.FriendType friendType; translator.Get(L, 2, out friendType); xc.FriendsInfo friendInfo = (xc.FriendsInfo)translator.GetObject(L, 3, typeof(xc.FriendsInfo)); __cl_gen_to_be_invoked.DeleteFriend(friendType, friendInfo); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to xc.FriendsNet.DeleteFriend!")); }
static int _m_HandleServerData(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.FriendsNet __cl_gen_to_be_invoked = (xc.FriendsNet)translator.FastGetCSObj(L, 1); try { { ushort protocol = (ushort)LuaAPI.xlua_tointeger(L, 2); byte[] data = LuaAPI.lua_tobytes(L, 3); __cl_gen_to_be_invoked.HandleServerData(protocol, data); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetFriendList(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.FriendsNet __cl_gen_to_be_invoked = (xc.FriendsNet)translator.FastGetCSObj(L, 1); try { { xc.FriendType type; translator.Get(L, 2, out type); uint isFirst = LuaAPI.xlua_touint(L, 3); __cl_gen_to_be_invoked.GetFriendList(type, isFirst); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_RequestCloser(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.FriendsNet __cl_gen_to_be_invoked = (xc.FriendsNet)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count >= 1 && (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 2) || LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))) { uint[] uuids = translator.GetParams <uint>(L, 2); __cl_gen_to_be_invoked.RequestCloser(uuids); return(0); } if (__gen_param_count == 2 && translator.Assignable <System.Collections.Generic.List <uint> >(L, 2)) { System.Collections.Generic.List <uint> uuids = (System.Collections.Generic.List <uint>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <uint>)); __cl_gen_to_be_invoked.RequestCloser(uuids); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to xc.FriendsNet.RequestCloser!")); }
static int _m_GetPkgBrief(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.FriendsNet __cl_gen_to_be_invoked = (xc.FriendsNet)translator.FastGetCSObj(L, 1); try { { ushort protocol = (ushort)LuaAPI.xlua_tointeger(L, 2); byte[] data = LuaAPI.lua_tobytes(L, 3); Net.PkgPlayerBrief __cl_gen_ret = __cl_gen_to_be_invoked.GetPkgBrief(protocol, data); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }