mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Partial everything
This commit is contained in:
committed by
Dean Herbert
parent
a1c559ae05
commit
7bc8908ca9
@ -13,7 +13,7 @@ using osu.Game.Online.API.Requests.Responses;
|
||||
|
||||
namespace osu.Game.Database
|
||||
{
|
||||
public class BeatmapLookupCache : OnlineLookupCache<int, APIBeatmap, GetBeatmapsRequest>
|
||||
public partial class BeatmapLookupCache : OnlineLookupCache<int, APIBeatmap, GetBeatmapsRequest>
|
||||
{
|
||||
/// <summary>
|
||||
/// Perform an API lookup on the specified beatmap, populating a <see cref="APIBeatmap"/> model.
|
||||
|
@ -5,7 +5,7 @@ using osu.Game.Overlays.Notifications;
|
||||
|
||||
namespace osu.Game.Database
|
||||
{
|
||||
public class ImportProgressNotification : ProgressNotification
|
||||
public partial class ImportProgressNotification : ProgressNotification
|
||||
{
|
||||
public ImportProgressNotification()
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ namespace osu.Game.Database
|
||||
/// <summary>
|
||||
/// Handles migration of legacy user data from osu-stable.
|
||||
/// </summary>
|
||||
public class LegacyImportManager : Component
|
||||
public partial class LegacyImportManager : Component
|
||||
{
|
||||
[Resolved]
|
||||
private SkinManager skins { get; set; } = null!;
|
||||
|
@ -18,7 +18,7 @@ namespace osu.Game.Database
|
||||
/// A component which performs lookups (or calculations) and caches the results.
|
||||
/// Currently not persisted between game sessions.
|
||||
/// </summary>
|
||||
public abstract class MemoryCachingComponent<TLookup, TValue> : Component
|
||||
public abstract partial class MemoryCachingComponent<TLookup, TValue> : Component
|
||||
{
|
||||
private readonly ConcurrentDictionary<TLookup, TValue> cache = new ConcurrentDictionary<TLookup, TValue>();
|
||||
|
||||
|
@ -14,7 +14,7 @@ using osu.Game.Overlays.Notifications;
|
||||
|
||||
namespace osu.Game.Database
|
||||
{
|
||||
public abstract class ModelDownloader<TModel, T> : IModelDownloader<T>
|
||||
public abstract partial class ModelDownloader<TModel, T> : IModelDownloader<T>
|
||||
where TModel : class, IHasGuidPrimaryKey, ISoftDelete, IEquatable<TModel>, T
|
||||
where T : class
|
||||
{
|
||||
@ -124,7 +124,7 @@ namespace osu.Game.Database
|
||||
|
||||
private bool canDownload(T model) => GetExistingDownload(model) == null && api != null;
|
||||
|
||||
private class DownloadNotification : ProgressNotification
|
||||
private partial class DownloadNotification : ProgressNotification
|
||||
{
|
||||
public override bool IsImportant => false;
|
||||
|
||||
@ -134,7 +134,7 @@ namespace osu.Game.Database
|
||||
Text = CompletionText
|
||||
};
|
||||
|
||||
private class SilencedProgressCompletionNotification : ProgressCompletionNotification
|
||||
private partial class SilencedProgressCompletionNotification : ProgressCompletionNotification
|
||||
{
|
||||
public override bool IsImportant => false;
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ using osu.Game.Online.API;
|
||||
|
||||
namespace osu.Game.Database
|
||||
{
|
||||
public abstract class OnlineLookupCache<TLookup, TValue, TRequest> : MemoryCachingComponent<TLookup, TValue>
|
||||
public abstract partial class OnlineLookupCache<TLookup, TValue, TRequest> : MemoryCachingComponent<TLookup, TValue>
|
||||
where TLookup : IEquatable<TLookup>
|
||||
where TValue : class, IHasOnlineID<TLookup>
|
||||
where TRequest : APIRequest
|
||||
|
@ -9,7 +9,7 @@ using osu.Game.Resources.Localisation.Web;
|
||||
|
||||
namespace osu.Game.Database
|
||||
{
|
||||
public class TooManyDownloadsNotification : SimpleNotification
|
||||
public partial class TooManyDownloadsNotification : SimpleNotification
|
||||
{
|
||||
public TooManyDownloadsNotification()
|
||||
{
|
||||
|
@ -13,7 +13,7 @@ using osu.Game.Online.API.Requests.Responses;
|
||||
|
||||
namespace osu.Game.Database
|
||||
{
|
||||
public class UserLookupCache : OnlineLookupCache<int, APIUser, GetUsersRequest>
|
||||
public partial class UserLookupCache : OnlineLookupCache<int, APIUser, GetUsersRequest>
|
||||
{
|
||||
/// <summary>
|
||||
/// Perform an API lookup on the specified user, populating a <see cref="APIUser"/> model.
|
||||
|
Reference in New Issue
Block a user