Ejemplo n.º 1
0
        public static HeroStrengthenNeedData GetHeroStrengthenNeedDataByID(int id)
        {
            HeroStrengthenNeedData heroStrengthenNeedData = null;

            HeroStrengthenNeedDataDictionary.TryGetValue(id, out heroStrengthenNeedData);
            return(heroStrengthenNeedData);
        }
Ejemplo n.º 2
0
        public static HeroStrengthenNeedData GetHeroStrengthenNeedDataByLevel(int lv)
        {
            HeroStrengthenNeedData data = null;

            if (HeroStrengthenNeedDataDictionary.ContainsKey(lv) && HeroStrengthenNeedDataDictionary[lv] != null)
            {
                data = HeroStrengthenNeedDataDictionary[lv];
            }
            return(data);
        }
Ejemplo n.º 3
0
        public static HeroStrengthenNeedData GetHeroStrengthenNeedDataByExp(int expTotal)
        {
            List <HeroStrengthenNeedData> dataList = GetNeedDataList();
            int exp = 0;

            int count = dataList.Count;
            HeroStrengthenNeedData data = null;

            for (int i = 0; i < count; i++)
            {
                data = dataList[i];
                exp += data.exp_need;
                if (expTotal < exp)
                {
                    return(data);
                }
            }
            return(null);
        }
Ejemplo n.º 4
0
        public static HeroStrengthenNeedData LastNeedData()
        {
            HeroStrengthenNeedData data = HeroStrengthenNeedDataDictionary.Last().Value;

            return(data);
        }