Example #1
0
 public static ResHeroProficiency GetHeroProficiency(int job, int level)
 {
     HashSet <object> .Enumerator enumerator = GameDataMgr.heroProficiencyDatabin.GetDataByKey((int)((byte)level)).GetEnumerator();
     while (enumerator.MoveNext())
     {
         ResHeroProficiency current = (ResHeroProficiency)enumerator.Current;
         if (current.bJob == job)
         {
             return(current);
         }
     }
     return(null);
 }
Example #2
0
        public static ResHeroProficiency GetHeroProficiency(int job, int level)
        {
            HashSet <object> dataByKey = GameDataMgr.heroProficiencyDatabin.GetDataByKey((int)((byte)level));

            HashSet <object> .Enumerator enumerator = dataByKey.GetEnumerator();
            while (enumerator.MoveNext())
            {
                ResHeroProficiency resHeroProficiency = (ResHeroProficiency)enumerator.get_Current();
                if ((int)resHeroProficiency.bJob == job)
                {
                    return(resHeroProficiency);
                }
            }
            return(null);
        }