public static bool IsValidHerb(this RepositoryManager repoManager, int sn) { return(GetSkills(repoManager, SkillTypes.Herb).FirstOrDefault(x => x.ID == sn) != null); }
public static IEnumerable <SkillData> GetSkills(this RepositoryManager repoManager, SkillTypes type) { return(repoManager.SKILLS.Values.Where(x => x.Type == type)); }
public static LiquidData GetLiquid(this RepositoryManager repoManager, string str) { return(str.IsNumber() ? repoManager.GetEntity <LiquidData>(str.ToInt32()) : repoManager.GetEntity <LiquidData>(str)); }