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); }
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); }