diff --git a/osu.Game/Database/IModelDownloader.cs b/osu.Game/Database/IModelDownloader.cs index a5573b2190..8c1e454f0b 100644 --- a/osu.Game/Database/IModelDownloader.cs +++ b/osu.Game/Database/IModelDownloader.cs @@ -11,8 +11,9 @@ namespace osu.Game.Database /// Represents a that can download new models from an external source. /// /// The model type. - public interface IModelDownloader : IPostNotifications - where TModel : class + /// The model's interface type. + public interface IModelDownloader : IPostNotifications + where TModel : class, T { /// /// Fired when a download begins. @@ -32,7 +33,7 @@ namespace osu.Game.Database /// The to be downloaded. /// Whether this download should be optimised for slow connections. Generally means extras are not included in the download bundle.. /// Whether the download was started. - bool Download(TModel model, bool minimiseDownloadSize); + bool Download(T model, bool minimiseDownloadSize); /// /// Gets an existing download request if it exists.