mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 01:33:20 +08:00
Fix order
This commit is contained in:
parent
06a558c4b7
commit
d903ad2186
@ -72,15 +72,9 @@ namespace osu.Game.Database
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Checks whether a given <see cref="TModel"/> is available in the local store already.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="model">The <see cref="TModel"/> whose existence needs to be checked.</param>
|
|
||||||
/// <returns>Whether the <see cref="TModel"/> exists locally.</returns>
|
|
||||||
public bool IsAvailableLocally(TModel model) => modelStore.ConsumableItems.Any(m => m.Equals(model));
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Downloads a <see cref="TModel"/> with optional parameters for the download request.
|
/// Downloads a <see cref="TModel"/> with optional parameters for the download request.
|
||||||
|
/// This will post notifications tracking progress.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="model">The <see cref="TModel"/> to be downloaded.</param>
|
/// <param name="model">The <see cref="TModel"/> to be downloaded.</param>
|
||||||
/// <param name="extra">Optional parameters to be used for creating the download request.</param>
|
/// <param name="extra">Optional parameters to be used for creating the download request.</param>
|
||||||
@ -96,6 +90,13 @@ namespace osu.Game.Database
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Checks whether a given <see cref="TModel"/> is available in the local store already.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="model">The <see cref="TModel"/> whose existence needs to be checked.</param>
|
||||||
|
/// <returns>Whether the <see cref="TModel"/> exists locally.</returns>
|
||||||
|
public bool IsAvailableLocally(TModel model) => modelStore.ConsumableItems.Any(m => m.Equals(model));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets an existing <see cref="TModel"/> download request if it exists.
|
/// Gets an existing <see cref="TModel"/> download request if it exists.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user