/// <summary> /// 钓鱼排行 /// </summary> /// <param name="msg"></param> public void OnFishRankingList(stRequestFishRankingListRelationUserCmd_CS msg) { this.m_fishingRank = msg.self_rank; this.m_fishingScore = msg.self_yiju; m_fishingRankInfoList.Clear(); for (int i = 0; i < msg.data.Count; i++) { FishingRankInfo info = new FishingRankInfo(); info.rank = msg.data[i].rank; info.name = msg.data[i].name; info.clanName = msg.data[i].clanname; info.num = msg.data[i].num; info.score = msg.data[i].yiju; m_fishingRankInfoList.Add(info); } if (DataManager.Manager <UIPanelManager>().IsShowPanel(PanelID.FishingPanel)) { DataManager.Manager <UIPanelManager>().SendMsg(PanelID.FishingPanel, UIMsgID.eFishingMyRank, null); } if (DataManager.Manager <UIPanelManager>().IsShowPanel(PanelID.FishingRankPanel)) { DataManager.Manager <UIPanelManager>().SendMsg(PanelID.FishingRankPanel, UIMsgID.eFishingRank, null); } }
public override void SetGridData(object data) { base.SetGridData(data); this.info = data as FishingRankInfo; }