public int GetTotalOfType(ModSelectorService.ModType modType, EnableFlag enableFlag) { IEnumerable <string> modNames = ModSelectorService.Instance.GetModNames(modType); switch (enableFlag) { case EnableFlag.Disabled: return(DisabledList.Intersect(modNames).Count()); case EnableFlag.Enabled: return(modNames.Except(DisabledList).Count()); default: return(modNames.Except(DisabledList).Count()); } }
public int GetDisabledTotalOfType(ModSelectorService.ModType modType) { return(DisabledList.Intersect(ModSelectorService.Instance.GetModNames(modType)).Count()); }