Beispiel #1
0
 public static bool GetRecommendEquipmentVo(string key, out SysRecommendEquipmentVo vo)
 {
     vo = null;
     if (!string.IsNullOrEmpty(key))
     {
         vo = BaseDataMgr.instance.GetDataById <SysRecommendEquipmentVo>(key);
         if (vo == null)
         {
             Reminder.ReminderStr("SysRecommendEquipmentVo  is Null key=" + key);
         }
     }
     return(vo != null);
 }
Beispiel #2
0
        private string[] GetEquipStrings(SysHeroMainVo heroData)
        {
            if (string.IsNullOrEmpty(heroData.recommend_equip))
            {
                return(this.treeNames);
            }
            string[] array = heroData.recommend_equip.Split(new char[]
            {
                ','
            });
            if (string.IsNullOrEmpty(array[0]))
            {
                return(this.treeNames);
            }
            string[] array2 = array[0].Split(new char[]
            {
                '|'
            });
            if (array2.Length < 2)
            {
                return(this.treeNames);
            }
            string text = array2[1];

            if (string.IsNullOrEmpty(text))
            {
                return(this.treeNames);
            }
            SysRecommendEquipmentVo dataById = BaseDataMgr.instance.GetDataById <SysRecommendEquipmentVo>(text);

            if (!StringUtils.CheckValid(dataById.equipments))
            {
                return(this.treeNames);
            }
            return(StringUtils.GetStringValue(dataById.equipments, ','));
        }