Partial everything

This commit is contained in:
Dan Balasescu
2022-11-24 14:32:20 +09:00
committed by Dean Herbert
parent a1c559ae05
commit 7bc8908ca9
2331 changed files with 3218 additions and 3218 deletions

View File

@ -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.

View File

@ -5,7 +5,7 @@ using osu.Game.Overlays.Notifications;
namespace osu.Game.Database
{
public class ImportProgressNotification : ProgressNotification
public partial class ImportProgressNotification : ProgressNotification
{
public ImportProgressNotification()
{

View File

@ -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!;

View File

@ -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>();

View File

@ -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;
}

View File

@ -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

View File

@ -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()
{

View File

@ -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.