示例#1
0
 public bool CanUninstall(int moduleType) => IsInstalled(moduleType) && !InstalledModules.Any(module => ModuleLoader.GetRequirements(module.Type).Contains(moduleType));
示例#2
0
 public bool CanInstall(int moduleType) => !IsInstalled(moduleType) && !ModuleLoader.GetIncompatibleModules(moduleType).Any(IsInstalled) && ModuleLoader.GetRequirements(moduleType).All(IsInstalled);