Esempio n. 1
0
    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());
        }
    }
Esempio n. 2
0
 public int GetDisabledTotalOfType(ModSelectorService.ModType modType)
 {
     return(DisabledList.Intersect(ModSelectorService.Instance.GetModNames(modType)).Count());
 }