static int _m_CreateUnitCacheInfo_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 2 && translator.Assignable <Net.PkgPlayerBrief>(L, 1) && translator.Assignable <UnityEngine.Vector3>(L, 2)) { Net.PkgPlayerBrief info = (Net.PkgPlayerBrief)translator.GetObject(L, 1, typeof(Net.PkgPlayerBrief)); UnityEngine.Vector3 pos; translator.Get(L, 2, out pos); xc.UnitCacheInfo __cl_gen_ret = xc.ActorHelper.CreateUnitCacheInfo(info, pos); translator.Push(L, __cl_gen_ret); return(1); } if (__gen_param_count == 2 && translator.Assignable <Net.PkgMonBrief>(L, 1) && translator.Assignable <UnityEngine.Vector3>(L, 2)) { Net.PkgMonBrief info = (Net.PkgMonBrief)translator.GetObject(L, 1, typeof(Net.PkgMonBrief)); UnityEngine.Vector3 pos; translator.Get(L, 2, out pos); xc.UnitCacheInfo __cl_gen_ret = xc.ActorHelper.CreateUnitCacheInfo(info, pos); 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.ActorHelper.CreateUnitCacheInfo!")); }
static int _m_RemoveApplicant(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.FriendsManager __cl_gen_to_be_invoked = (xc.FriendsManager)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 uuid = LuaAPI.xlua_touint(L, 2); __cl_gen_to_be_invoked.RemoveApplicant(uuid); return(0); } if (__gen_param_count == 2 && translator.Assignable <Net.PkgPlayerBrief>(L, 2)) { Net.PkgPlayerBrief pkgPlayerBrief = (Net.PkgPlayerBrief)translator.GetObject(L, 2, typeof(Net.PkgPlayerBrief)); __cl_gen_to_be_invoked.RemoveApplicant(pkgPlayerBrief); 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.FriendsManager.RemoveApplicant!")); }
public FriendsInfo(Net.PkgPlayerBrief player_brief) { this.BattlePower = player_brief.battle_power; if (player_brief.guild != null) { this.SocietyPos = player_brief.guild.guild_pos; } this.Level = player_brief.level; this.RoleId = player_brief.rid; this.Uid = player_brief.uuid; if (player_brief.name != null) { this.Name = System.Text.Encoding.UTF8.GetString(player_brief.name); } if (player_brief.guild != null) { this.SocietyName = System.Text.Encoding.UTF8.GetString(player_brief.guild.guild_name); } this.Online = player_brief.offline_time == 0 ? true:false; this.TeamId = player_brief.team_id; this.Honor = player_brief.honor; this.TransferLv = player_brief.transfer; this.VipLv = player_brief.vip; this.BubbleId = ActorHelper.GetPartInList(player_brief.shows, DBAvatarPart.BODY_PART.BUBBLE); this.PhotoFrameId = ActorHelper.GetPartInList(player_brief.shows, DBAvatarPart.BODY_PART.PHOTO_FRAME); if (player_brief.mate != null) { this.MateUUID = player_brief.mate.uuid; this.MateName = Encoding.UTF8.GetString(player_brief.mate.name); } else { this.MateUUID = 0; this.MateName = ""; } }
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)); } }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 14 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 11) && (LuaAPI.lua_isnil(L, 12) || LuaAPI.lua_type(L, 12) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 13) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 14)) { uint uuid = LuaAPI.xlua_touint(L, 2); string name = LuaAPI.lua_tostring(L, 3); uint level = LuaAPI.xlua_touint(L, 4); uint roleId = LuaAPI.xlua_touint(L, 5); bool online = LuaAPI.lua_toboolean(L, 6); uint teamId = LuaAPI.xlua_touint(L, 7); uint honor = LuaAPI.xlua_touint(L, 8); uint transferLv = LuaAPI.xlua_touint(L, 9); uint vipLv = LuaAPI.xlua_touint(L, 10); uint mateUUID = LuaAPI.xlua_touint(L, 11); string mateName = LuaAPI.lua_tostring(L, 12); uint BubbleId = LuaAPI.xlua_touint(L, 13); uint PhotoFrameId = LuaAPI.xlua_touint(L, 14); xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(uuid, name, level, roleId, online, teamId, honor, transferLv, vipLv, mateUUID, mateName, BubbleId, PhotoFrameId); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 13 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 11) && (LuaAPI.lua_isnil(L, 12) || LuaAPI.lua_type(L, 12) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 13)) { uint uuid = LuaAPI.xlua_touint(L, 2); string name = LuaAPI.lua_tostring(L, 3); uint level = LuaAPI.xlua_touint(L, 4); uint roleId = LuaAPI.xlua_touint(L, 5); bool online = LuaAPI.lua_toboolean(L, 6); uint teamId = LuaAPI.xlua_touint(L, 7); uint honor = LuaAPI.xlua_touint(L, 8); uint transferLv = LuaAPI.xlua_touint(L, 9); uint vipLv = LuaAPI.xlua_touint(L, 10); uint mateUUID = LuaAPI.xlua_touint(L, 11); string mateName = LuaAPI.lua_tostring(L, 12); uint BubbleId = LuaAPI.xlua_touint(L, 13); xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(uuid, name, level, roleId, online, teamId, honor, transferLv, vipLv, mateUUID, mateName, BubbleId); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 12 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 11) && (LuaAPI.lua_isnil(L, 12) || LuaAPI.lua_type(L, 12) == LuaTypes.LUA_TSTRING)) { uint uuid = LuaAPI.xlua_touint(L, 2); string name = LuaAPI.lua_tostring(L, 3); uint level = LuaAPI.xlua_touint(L, 4); uint roleId = LuaAPI.xlua_touint(L, 5); bool online = LuaAPI.lua_toboolean(L, 6); uint teamId = LuaAPI.xlua_touint(L, 7); uint honor = LuaAPI.xlua_touint(L, 8); uint transferLv = LuaAPI.xlua_touint(L, 9); uint vipLv = LuaAPI.xlua_touint(L, 10); uint mateUUID = LuaAPI.xlua_touint(L, 11); string mateName = LuaAPI.lua_tostring(L, 12); xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(uuid, name, level, roleId, online, teamId, honor, transferLv, vipLv, mateUUID, mateName); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 11 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 11)) { uint uuid = LuaAPI.xlua_touint(L, 2); string name = LuaAPI.lua_tostring(L, 3); uint level = LuaAPI.xlua_touint(L, 4); uint roleId = LuaAPI.xlua_touint(L, 5); bool online = LuaAPI.lua_toboolean(L, 6); uint teamId = LuaAPI.xlua_touint(L, 7); uint honor = LuaAPI.xlua_touint(L, 8); uint transferLv = LuaAPI.xlua_touint(L, 9); uint vipLv = LuaAPI.xlua_touint(L, 10); uint mateUUID = LuaAPI.xlua_touint(L, 11); xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(uuid, name, level, roleId, online, teamId, honor, transferLv, vipLv, mateUUID); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 10 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10)) { uint uuid = LuaAPI.xlua_touint(L, 2); string name = LuaAPI.lua_tostring(L, 3); uint level = LuaAPI.xlua_touint(L, 4); uint roleId = LuaAPI.xlua_touint(L, 5); bool online = LuaAPI.lua_toboolean(L, 6); uint teamId = LuaAPI.xlua_touint(L, 7); uint honor = LuaAPI.xlua_touint(L, 8); uint transferLv = LuaAPI.xlua_touint(L, 9); uint vipLv = LuaAPI.xlua_touint(L, 10); xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(uuid, name, level, roleId, online, teamId, honor, transferLv, vipLv); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <Net.PkgPlayerBrief>(L, 2)) { Net.PkgPlayerBrief player_brief = (Net.PkgPlayerBrief)translator.GetObject(L, 2, typeof(Net.PkgPlayerBrief)); xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(player_brief); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 1) { xc.FriendsInfo __cl_gen_ret = new xc.FriendsInfo(); 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.FriendsInfo constructor!")); }