private void SetTeamobject_Change(Variant data) { uint num = data["ltpid"]; bool flag = num == 108u || num == 109u || num == 110u || num == 111u; if (flag) { ModelBase <A3_TeamModel> .getInstance().cidName = ModelBase <A3_TeamModel> .getInstance().cidNameElse; ArrayList arrayList = new ArrayList(); arrayList.Add(1); BaseProxy <TeamProxy> .getInstance().MyTeamData.ltpid = num; ModelBase <A3_TeamModel> .getInstance().bein = true; ModelBase <A3_TeamModel> .getInstance().ltpids = num; InterfaceMgr.getInstance().open(InterfaceMgr.A3_COUNTERPART, arrayList, false); a3_counterpart expr_95 = a3_counterpart.instance; if (expr_95 != null) { expr_95.transform.SetAsLastSibling(); } a3_counterpart expr_AB = a3_counterpart.instance; if (expr_AB != null) { expr_AB.changePos(); } a3_counterpart expr_BC = a3_counterpart.instance; if (expr_BC != null) { expr_BC.getGameObjectByPath("currentTeam").SetActive(true); } } else { InterfaceMgr.getInstance().close(InterfaceMgr.A3_COUNTERPART); a3_counterpart expr_EC = a3_counterpart.instance; if (expr_EC != null) { expr_EC.getGameObjectByPath("currentTeam").SetActive(false); } a3_counterpart expr_108 = a3_counterpart.instance; if (expr_108 != null) { expr_108.getGameObjectByPath("haoyou").SetActive(false); } a3_counterpart expr_124 = a3_counterpart.instance; if (expr_124 != null) { expr_124.getGameObjectByPath("yaoqing").SetActive(false); } } base.dispatchEvent(GameEvent.Create(TeamProxy.EVENT_TEAMOBJECT_CHANGE, this, data, false)); }
private void SetAffirmInvite(Variant data) { ItemTeamMemberData itemTeamMemberData = new ItemTeamMemberData(); bool flag = data.ContainsKey("cofirmed"); if (flag) { bool cofirmed = data["cofirmed"]; itemTeamMemberData.cofirmed = cofirmed; } bool flag2 = data.ContainsKey("tid"); if (flag2) { uint teamId = data["tid"]; itemTeamMemberData.teamId = teamId; List <ItemTeamData> list = new List <ItemTeamData>(); List <Variant> arr = data["plys"]._arr; uint num = data["leader_cid"]; bool dirJoin = data["dir_join"]; bool membInv = data["memb_inv"]; uint num2 = data["ltpid"]; itemTeamMemberData.ltpid = num2; itemTeamMemberData.leaderCid = num; itemTeamMemberData.dirJoin = dirJoin; itemTeamMemberData.membInv = membInv; bool flag3 = this.MyTeamData == null; if (flag3) { this.MyTeamData = new ItemTeamMemberData(); } this.MyTeamData.teamId = teamId; this.MyTeamData.leaderCid = num; this.MyTeamData.dirJoin = dirJoin; this.MyTeamData.membInv = membInv; this.MyTeamData.ltpid = num2; foreach (Variant current in arr) { uint num3 = current["cid"]; string text = current["name"]; uint lvl = current["lvl"]; uint zhuan = current["zhuan"]; uint combpt = current["combpt"]; uint carr = current["carr"]; bool online = current["online"]; ItemTeamData itemTeamData = new ItemTeamData(); itemTeamData.cid = num3; itemTeamData.name = text; itemTeamData.lvl = lvl; itemTeamData.zhuan = zhuan; itemTeamData.combpt = (int)combpt; itemTeamData.carr = carr; itemTeamData.online = online; itemTeamData.isCaptain = (num == num3); itemTeamData.showRemoveMemberBtn = false; list.Add(itemTeamData); this.MyTeamData.itemTeamDataList.Add(itemTeamData); bool flag4 = (num2 == 108u || num2 == 109u || num2 == 110u || num2 == 111u) && !ModelBase <A3_TeamModel> .getInstance().cidName.ContainsKey(num3); if (flag4) { ModelBase <A3_TeamModel> .getInstance().cidName.Add(num3, text); } bool flag5 = !ModelBase <A3_TeamModel> .getInstance().cidNameElse.ContainsKey(num3); if (flag5) { ModelBase <A3_TeamModel> .getInstance().cidNameElse.Add(num3, text); } } bool flag6 = num2 == 108u || num2 == 109u || num2 == 110u || num2 == 111u; if (flag6) { ArrayList arrayList = new ArrayList(); arrayList.Add(1); InterfaceMgr.getInstance().open(InterfaceMgr.A3_COUNTERPART, arrayList, false); a3_counterpart expr_33B = a3_counterpart.instance; if (expr_33B != null) { expr_33B.transform.SetAsLastSibling(); } a3_counterpart expr_351 = a3_counterpart.instance; if (expr_351 != null) { expr_351.getGameObjectByPath("currentTeam").SetActive(true); } ModelBase <A3_TeamModel> .getInstance().bein = true; ModelBase <A3_TeamModel> .getInstance().ltpids = num2; } ItemTeamData itemTeamData2 = new ItemTeamData(); itemTeamData2.cid = ModelBase <PlayerModel> .getInstance().cid; itemTeamData2.name = ModelBase <PlayerModel> .getInstance().name; itemTeamData2.lvl = ModelBase <PlayerModel> .getInstance().lvl; itemTeamData2.zhuan = ModelBase <PlayerModel> .getInstance().up_lvl; itemTeamData2.combpt = ModelBase <PlayerModel> .getInstance().combpt; itemTeamData2.carr = (uint)ModelBase <PlayerModel> .getInstance().profession; itemTeamData2.online = true; itemTeamData2.isCaptain = false; itemTeamData2.showRemoveMemberBtn = false; itemTeamData2.ltpid = data["ltpid"]; list.Add(itemTeamData2); itemTeamMemberData.itemTeamDataList = list; this.MyTeamData.itemTeamDataList.Add(itemTeamData2); ModelBase <A3_TeamModel> .getInstance().AffirmInviteData = itemTeamMemberData; base.dispatchEvent(GameEvent.Create(TeamProxy.EVENT_AFFIRMINVITE, this, data, false)); this.joinedTeam = true; MonsterMgr._inst.RefreshVaildMonster(); } }