public static NpcAbility FindNpcAblity(AblityType type, int level) { foreach (NpcAbility ablity in mNpcSkills) { if (ablity.Type == type && ablity.level == level) { return(ablity); } } return(null); }
public NpcAbility GetAblity(AblityType type, SkillLevel level) { foreach (NpcAbility ablity in mNpcSkills) { if ((ablity.Type == type) && (ablity.Level == level)) { return(ablity); } } return(null); }
public static List <NpcAbility> GetAbilityByType(AblityType type) { List <NpcAbility> Ablitys = new List <NpcAbility>(); foreach (NpcAbility ablity in mNpcSkills) { if (ablity.Type == type) { Ablitys.Add(ablity); } } return(Ablitys); }
public List <AblityInfo> Cur_GetAblityByType(AblityType type) { List <AblityInfo> infos = new List <AblityInfo>(); foreach (int key in AblityInfos.Keys) { if (AblityInfos[key]._type == type) { infos.Add(AblityInfos[key]); } } return(infos); }
public List <int> GetProtoIds(AblityType type) { if (AblityInfos.Count == 0) { return(null); } foreach (int key in AblityInfos.Keys) { if (AblityInfos[key]._type == type) { return(AblityInfos[key]._ProtoIds); } } return(null); }
public float GetCorrectRate(AblityType type) { if (AblityInfos.Count == 0) { return(0.0f); } foreach (int key in AblityInfos.Keys) { if (AblityInfos[key]._type == type) { return(AblityInfos[key]._Correctrate); } } return(0.0f); }
//Talent fun public float GetTalentPercent(AblityType type) { if (AblityInfos.Count == 0) { return(0.0f); } foreach (int key in AblityInfos.Keys) { if (AblityInfos[key]._type == type) { return(AblityInfos[key]._Percent); } } return(0.0f); }
public AblityInfo Cur_GetAblityInfoByType(AblityType type) { if (AblityInfos == null) { return(null); } foreach (int key in AblityInfos.Keys) { if (AblityInfos[key]._type == type) { return(AblityInfos[key]); } } return(null); }
public bool Cur_ContainsType(AblityType type) { if (AblityInfos == null) { return(false); } foreach (int key in AblityInfos.Keys) { if (AblityInfos[key]._type == type) { return(true); } } return(false); }