private IReadOnlyCollection <ILaunchableContent> HandleAia( IReadOnlyCollection <ILaunchableContent> content) { var info = new AiaInfo(content.OfType <IHavePackageName>().ToArray()); var newModsList = content.ToList(); if (info.HasAia() && info.HasCup()) { // if (aiaSpecific != null || aiaSpecificLite != null) // newModsList.Remove(Cup); // else newModsList.RemoveAll(info.IsAia); } if (info.HasCup() || info.HasAia()) { newModsList.RemoveAll(info.IsA3Mp); } return(newModsList); }
private IReadOnlyCollection<IContentSpec<IInstallableContent>> HandleAia( IReadOnlyCollection<IContentSpec<IInstallableContent>> content) { var info = new AiaInfo(content.Select(x => x.Content).OfType<IHavePackageName>().ToArray()); var newModsList = content.ToList(); if (info.HasAia() && info.HasCup()) { // if (aiaSpecific != null || aiaSpecificLite != null) // newModsList.Remove(Cup); // else newModsList.RemoveAll(x => info.IsAia(x.Content)); } if (info.HasCup() || info.HasAia()) newModsList.RemoveAll(x => info.IsA3Mp(x.Content)); return newModsList; }