1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 15:53:21 +08:00

More summaries

This commit is contained in:
Mikal Stodal 2017-03-02 15:37:45 +01:00
parent 866dbf0b1d
commit c88c6c4c62

View File

@ -116,6 +116,10 @@ namespace osu.Game.Database
connection.DeleteAll<BeatmapInfo>(); connection.DeleteAll<BeatmapInfo>();
} }
/// <summary>
/// Import multiple <see cref="BeatmapSetInfo"/> from <paramref name="paths"/>.
/// </summary>
/// <param name="paths">Multiple locations on disk</param>
public void Import(IEnumerable<string> paths) public void Import(IEnumerable<string> paths)
{ {
Stack<BeatmapSetInfo> sets = new Stack<BeatmapSetInfo>(); Stack<BeatmapSetInfo> sets = new Stack<BeatmapSetInfo>();
@ -151,6 +155,10 @@ namespace osu.Game.Database
Import(sets); Import(sets);
} }
/// <summary>
/// Import <see cref="BeatmapSetInfo"/> from <paramref name="path"/>.
/// </summary>
/// <param name="path">Location on disk</param>
public void Import(string path) public void Import(string path)
{ {
Import(new [] { path }); Import(new [] { path });