(d85d68721) Fixed character's feet getting stuck to platforms when climbing ladders while holding A/D

This commit is contained in:
Joonas Rikkonen
2019-05-03 13:44:04 +03:00
parent fb21005258
commit 35f4657ea1
11 changed files with 91 additions and 339 deletions
@@ -162,6 +162,23 @@ namespace Barotrauma
}
}
/// <summary>
/// Returns the file paths of all files of the given type in the content packages.
/// </summary>
/// <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)
{
if (searchAllContentPackages)
{
return ContentPackage.GetFilesOfType(ContentPackage.List, type);
}
else
{
return ContentPackage.GetFilesOfType(SelectedPackages, type);
}
}
/// <summary>
/// Returns the file paths of all files of the given type in the currently selected content packages.
/// </summary>