mirror of
https://github.com/ppy/osu
synced 2025-03-11 05:49:12 +00:00
Remove BeatmapSetInfo
and Metadata
from interface
There were very few accesses to this, and after realm they should all be done via the `BeatmapInfo`, so let's remove this.
This commit is contained in:
parent
1b0af78831
commit
967419c9ac
@ -157,12 +157,12 @@ namespace osu.Game.Tests.Visual.Navigation
|
||||
AddUntilStep("wait for fail", () => player.HasFailed);
|
||||
|
||||
AddUntilStep("wait for track stop", () => !Game.MusicController.IsPlaying);
|
||||
AddAssert("Ensure time before preview point", () => Game.MusicController.CurrentTrack.CurrentTime < beatmap().Metadata.PreviewTime);
|
||||
AddAssert("Ensure time before preview point", () => Game.MusicController.CurrentTrack.CurrentTime < beatmap().BeatmapInfo.Metadata.PreviewTime);
|
||||
|
||||
pushEscape();
|
||||
|
||||
AddUntilStep("wait for track playing", () => Game.MusicController.IsPlaying);
|
||||
AddAssert("Ensure time wasn't reset to preview point", () => Game.MusicController.CurrentTrack.CurrentTime < beatmap().Metadata.PreviewTime);
|
||||
AddAssert("Ensure time wasn't reset to preview point", () => Game.MusicController.CurrentTrack.CurrentTime < beatmap().BeatmapInfo.Metadata.PreviewTime);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -15,14 +15,13 @@ using osu.Game.Storyboards;
|
||||
|
||||
namespace osu.Game.Beatmaps
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides access to the multiple resources offered by a beatmap model (textures, skins, playable beatmaps etc.)
|
||||
/// </summary>
|
||||
public interface IWorkingBeatmap
|
||||
{
|
||||
IBeatmapInfo BeatmapInfo { get; }
|
||||
|
||||
IBeatmapSetInfo BeatmapSetInfo { get; }
|
||||
|
||||
IBeatmapMetadataInfo Metadata { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether the Beatmap has finished loading.
|
||||
///</summary>
|
||||
|
@ -214,8 +214,6 @@ namespace osu.Game.Beatmaps
|
||||
public virtual bool BeatmapLoaded => beatmapLoadTask?.IsCompleted ?? false;
|
||||
|
||||
IBeatmapInfo IWorkingBeatmap.BeatmapInfo => BeatmapInfo;
|
||||
IBeatmapMetadataInfo IWorkingBeatmap.Metadata => Metadata;
|
||||
IBeatmapSetInfo IWorkingBeatmap.BeatmapSetInfo => BeatmapSetInfo;
|
||||
|
||||
public IBeatmap Beatmap
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user