using System.Collections; using System.Collections.Generic; using UnityEngine; using Newtonsoft.Json.Linq; public class HuanlingshiVo { public HuanlingshiVo(int id) { this.id = id; } /// /// 唤灵师id /// public int id { get; set; } /// /// 唤灵师等级 /// public int huanglingshiLv { get { Dictionary collectHeroDic = UserProxy.Instance.player.collectHero.collectHeroDic; if (collectHeroDic.ContainsKey(this.id.ToString())) { return collectHeroDic[this.id.ToString()].level; } return 0; } } /// /// 唤灵师的星级 /// public int starLv { get { Dictionary collectHeroDic = UserProxy.Instance.player.collectHero.collectHeroDic; if (collectHeroDic.ContainsKey(this.id.ToString())) { return collectHeroDic[this.id.ToString()].curStar; } return 0; } } /// /// 当前星级限制的等级 /// public int starLimitLv { get { //sm_heroextra_level_tupo mo = sm_heroextra_level_tupo.GetMoById(this.id,this.starLv); //if (mo == null) //{ // return 0; //} //return mo.starlimitLv; return 0; } } /// /// 是不是升级按钮 true:是 /// public bool isUpgrade { get { //if (this.huanglingshiLv < this.starLimitLv) //{ // return true; //} //if (UserProxy.Instance.player.baseInfo.level < sm_heroextra_level_tupo.GetMoById(this.id,this.starLv).userlvLimit) //{ // return true; //} return false; } } }