using System.Collections.Generic; using System.Linq; public partial class ActHeroAppearConfig : ConfigBase { /// /// 武将登场的所有招募寻宝类型 /// private static HashSet heroDebutActTreasureTypeList = new(); public static List GetHeroDebutActTreasureTypeList() { if (heroDebutActTreasureTypeList.Count == 0) { foreach (var item in GetValues()) { if (item.ActNum != 10) continue; heroDebutActTreasureTypeList.Add(item.ActTreasureType); } } return heroDebutActTreasureTypeList.ToList(); } /// /// 武将返场的所有招募寻宝类型 /// private static HashSet heroReturnActTreasureTypeList = new(); public static List GetHeroReturnActTreasureTypeList() { if (heroReturnActTreasureTypeList.Count == 0) { foreach (var item in GetValues()) { if (item.ActNum != 11) continue; heroReturnActTreasureTypeList.Add(item.ActTreasureType); } } return heroReturnActTreasureTypeList.ToList(); } }