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:
parent
7495bc5d3a
commit
ba6546038c
@ -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;
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user