mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09: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:
@ -157,12 +157,12 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
AddUntilStep("wait for fail", () => player.HasFailed);
|
AddUntilStep("wait for fail", () => player.HasFailed);
|
||||||
|
|
||||||
AddUntilStep("wait for track stop", () => !Game.MusicController.IsPlaying);
|
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();
|
pushEscape();
|
||||||
|
|
||||||
AddUntilStep("wait for track playing", () => Game.MusicController.IsPlaying);
|
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]
|
[Test]
|
||||||
|
@ -15,14 +15,13 @@ using osu.Game.Storyboards;
|
|||||||
|
|
||||||
namespace osu.Game.Beatmaps
|
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
|
public interface IWorkingBeatmap
|
||||||
{
|
{
|
||||||
IBeatmapInfo BeatmapInfo { get; }
|
IBeatmapInfo BeatmapInfo { get; }
|
||||||
|
|
||||||
IBeatmapSetInfo BeatmapSetInfo { get; }
|
|
||||||
|
|
||||||
IBeatmapMetadataInfo Metadata { get; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the Beatmap has finished loading.
|
/// Whether the Beatmap has finished loading.
|
||||||
///</summary>
|
///</summary>
|
||||||
|
@ -214,8 +214,6 @@ namespace osu.Game.Beatmaps
|
|||||||
public virtual bool BeatmapLoaded => beatmapLoadTask?.IsCompleted ?? false;
|
public virtual bool BeatmapLoaded => beatmapLoadTask?.IsCompleted ?? false;
|
||||||
|
|
||||||
IBeatmapInfo IWorkingBeatmap.BeatmapInfo => BeatmapInfo;
|
IBeatmapInfo IWorkingBeatmap.BeatmapInfo => BeatmapInfo;
|
||||||
IBeatmapMetadataInfo IWorkingBeatmap.Metadata => Metadata;
|
|
||||||
IBeatmapSetInfo IWorkingBeatmap.BeatmapSetInfo => BeatmapSetInfo;
|
|
||||||
|
|
||||||
public IBeatmap Beatmap
|
public IBeatmap Beatmap
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user