private static IEnumerable <string> ReadParseableStatLines() { var unparsedGivenStats = new GivenStatsCollection(null, null, null).SelectMany(s => s.GivenStatLines); return(ReadDataLines("SkillTreeStatLines") .Concat(ReadDataLines("ParseableStatLines")) .Concat(unparsedGivenStats) .Where(s => !NotParseableStatLines.Value.Contains(s.ToLowerInvariant()))); }
private static string[] ReadParsableStatLines() { var unparsable = ReadUnparsableStatLines().Select(s => s.ToLowerInvariant()).ToHashSet(); var unparsedGivenStats = new GivenStatsCollection(null, null, null, null).SelectMany(s => s.GivenStatLines); return(ReadStatLines("SkillTreeStatLines") .Concat(ReadStatLines("ParsableStatLines")) .Concat(unparsedGivenStats) .Where(s => !unparsable.Contains(s.ToLowerInvariant())) .ToArray()); }