mirror of
https://github.com/ppy/osu.git
synced 2025-01-31 21:42:55 +08:00
Move doc to interface
This commit is contained in:
parent
7ba676ad31
commit
3c2a2b2390
@ -72,11 +72,6 @@ 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 virtual bool IsAvailableLocally(TModel model) => modelStore.ConsumableItems.Any(m => m.Equals(model) && !m.DeletePending);
|
public virtual bool IsAvailableLocally(TModel model) => modelStore.ConsumableItems.Any(m => m.Equals(model) && !m.DeletePending);
|
||||||
|
|
||||||
public ArchiveDownloadRequest<TModel> GetExistingDownload(TModel model) => currentDownloads.Find(r => r.Model.Equals(model));
|
public ArchiveDownloadRequest<TModel> GetExistingDownload(TModel model) => currentDownloads.Find(r => r.Model.Equals(model));
|
||||||
|
@ -23,6 +23,12 @@ namespace osu.Game.Database
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
event Action<ArchiveDownloadRequest<TModel>> DownloadFailed;
|
event Action<ArchiveDownloadRequest<TModel>> DownloadFailed;
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Checks whether a given <see cref="TModel"/> is already available in the local store.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="model">The <see cref="TModel"/> whose existence needs to be checked.</param>
|
||||||
|
/// <returns>Whether the <see cref="TModel"/> exists.</returns>
|
||||||
bool IsAvailableLocally(TModel model);
|
bool IsAvailableLocally(TModel model);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user