mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Privatise the OsuGame beatmap, add local beatmap to OsuTestCase
This commit is contained in:
@ -65,7 +65,7 @@ namespace osu.Game
|
||||
|
||||
protected override Container<Drawable> Content => content;
|
||||
|
||||
public IBindable<WorkingBeatmap> Beatmap { get; private set; }
|
||||
protected GameBeatmap Beatmap;
|
||||
private WorkingBeatmap lastBeatmap;
|
||||
|
||||
private Bindable<bool> fpsDisplayVisible;
|
||||
@ -158,7 +158,7 @@ namespace osu.Game
|
||||
Fonts.AddStore(new GlyphStore(Resources, @"Fonts/Venera-Light"));
|
||||
|
||||
var defaultBeatmap = new DummyWorkingBeatmap(this);
|
||||
Beatmap = new NonNullableBindable<WorkingBeatmap>(defaultBeatmap);
|
||||
Beatmap = new GameBeatmap(defaultBeatmap);
|
||||
BeatmapManager.DefaultBeatmap = defaultBeatmap;
|
||||
|
||||
// tracks play so loud our samples can't keep up.
|
||||
@ -186,6 +186,9 @@ namespace osu.Game
|
||||
lastBeatmap = b;
|
||||
};
|
||||
|
||||
dependencies.Cache(Beatmap);
|
||||
dependencies.CacheAs<IGameBeatmap>(Beatmap);
|
||||
|
||||
FileStore.Cleanup();
|
||||
|
||||
AddInternal(api);
|
||||
|
Reference in New Issue
Block a user