Пример #1
0
        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())));
        }
Пример #2
0
        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());
        }