1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using Newtonsoft.Json.Linq;
- public class HuanlingshiVo
- {
- public HuanlingshiVo(int id)
- {
- this.id = id;
- }
- /// <summary>
- /// 唤灵师id
- /// </summary>
- public int id { get; set; }
- /// <summary>
- /// 唤灵师等级
- /// </summary>
- public int huanglingshiLv
- {
- get
- {
- Dictionary<string, GameHeroVo> collectHeroDic = UserProxy.Instance.player.collectHero.collectHeroDic;
- if (collectHeroDic.ContainsKey(this.id.ToString()))
- {
- return collectHeroDic[this.id.ToString()].level;
- }
- return 0;
- }
- }
- /// <summary>
- /// 唤灵师的星级
- /// </summary>
- public int starLv
- {
- get
- {
- Dictionary<string, GameHeroVo> collectHeroDic = UserProxy.Instance.player.collectHero.collectHeroDic;
- if (collectHeroDic.ContainsKey(this.id.ToString()))
- {
- return collectHeroDic[this.id.ToString()].curStar;
- }
- return 0;
- }
- }
- /// <summary>
- /// 当前星级限制的等级
- /// </summary>
- 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;
- }
- }
- /// <summary>
- /// 是不是升级按钮 true:是
- /// </summary>
- 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;
- }
- }
- }
|