(b5250291f) Merge branch 'dev' into human-ai

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:15:16 +03:00
parent b02565796a
commit 108e42edb0
32 changed files with 574 additions and 360 deletions
+12 -3
View File
@@ -526,11 +526,20 @@ namespace Barotrauma
}
/// <summary>
/// Returns the file paths of all files of the given type in the currently selected content packages.
/// Returns the file paths of all files of the given type in the content packages.
/// </summary>
public IEnumerable<string> GetFilesOfType(ContentType type)
/// <param name="type"></param>
/// <param name="searchAllContentPackages">If true, also returns files in content packages that are installed but not currently selected.</param>
public IEnumerable<string> GetFilesOfType(ContentType type, bool searchAllContentPackages = false)
{
return ContentPackage.GetFilesOfType(SelectedPackages, type);
if (searchAllContentPackages)
{
return ContentPackage.GetFilesOfType(ContentPackage.List, type);
}
else
{
return ContentPackage.GetFilesOfType(SelectedPackages, type);
}
}
/// <summary>