1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 16:52:54 +08:00

Make ModelInfo and abstract class constructor protected

- Implementing classes would be better off exposing it if necessary under a different name
This commit is contained in:
naoey 2019-06-12 00:47:02 +05:30
parent 7495bc5d3a
commit ba6546038c
No known key found for this signature in database
GPG Key ID: 670DA9BE3DF7EE60
2 changed files with 2 additions and 4 deletions

View File

@ -2,11 +2,9 @@
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using osu.Game.Database;
using osu.Game.Online.API;
@ -19,7 +17,7 @@ namespace osu.Game.Online
where TModel : class, IEquatable<TModel>
where TModelManager : class, IModelDownloader<TModel>
{
public readonly Bindable<TModel> ModelInfo = new Bindable<TModel>();
protected readonly Bindable<TModel> ModelInfo = new Bindable<TModel>();
private TModelManager manager;

View File

@ -11,7 +11,7 @@ namespace osu.Game.Overlays.Direct
{
public Bindable<BeatmapSetInfo> BeatmapSet => ModelInfo;
public BeatmapDownloadTrackingComposite(BeatmapSetInfo set = null)
protected BeatmapDownloadTrackingComposite(BeatmapSetInfo set = null)
: base(set)
{
}