private IEnumerable <ClassFilterItem> GenerateAscendancyClassItems(IAscendancyClasses ascendancyClasses)
        {
            yield return(NoFilterItem);

            foreach (var characterClass in Enums.GetValues <CharacterClass>())
            {
                var charClass = characterClass.ToString();
                yield return(new ClassFilterItem(charClass, null));

                foreach (var ascClass in ascendancyClasses.AscendancyClassesForCharacter(characterClass))
                {
                    yield return(new ClassFilterItem(charClass, ascClass));
                }
            }
        }
Exemple #2
0
        private IEnumerable <ClassFilterItem> GenerateAscendancyClassItems(IAscendancyClasses ascendancyClasses)
        {
            yield return(NoFilterItem);

            foreach (var nameToContent in CharacterNames.NameToContent)
            {
                var charClass = nameToContent.Value;
                yield return(new ClassFilterItem(charClass, null));

                foreach (var ascClass in ascendancyClasses.AscendancyClassesForCharacter(charClass))
                {
                    yield return(new ClassFilterItem(charClass, ascClass));
                }
            }
        }