2017-07-18 07:51:34 +00:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using osu.Framework.Audio.Track;
|
|
|
|
|
using osu.Framework.Graphics.Textures;
|
|
|
|
|
using osu.Game.Database;
|
|
|
|
|
using osu.Game.Rulesets.Objects;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Beatmaps
|
|
|
|
|
{
|
|
|
|
|
internal class DummyWorkingBeatmap : WorkingBeatmap
|
|
|
|
|
{
|
2017-07-18 08:59:43 +00:00
|
|
|
|
private readonly OsuGame game;
|
|
|
|
|
|
|
|
|
|
public DummyWorkingBeatmap(OsuGame game)
|
2017-07-18 07:51:34 +00:00
|
|
|
|
: base(new BeatmapInfo
|
|
|
|
|
{
|
|
|
|
|
Metadata = new BeatmapMetadata
|
|
|
|
|
{
|
|
|
|
|
Artist = "please load a beatmap!",
|
|
|
|
|
Title = "no beatmaps available!",
|
|
|
|
|
Author = "no one",
|
|
|
|
|
},
|
2017-07-18 08:44:45 +00:00
|
|
|
|
BeatmapSet = new BeatmapSetInfo(),
|
2017-07-18 07:51:34 +00:00
|
|
|
|
Difficulty = new BeatmapDifficulty(),
|
|
|
|
|
})
|
|
|
|
|
{
|
2017-07-18 08:59:43 +00:00
|
|
|
|
this.game = game;
|
2017-07-18 07:51:34 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override Beatmap GetBeatmap() => new Beatmap
|
|
|
|
|
{
|
|
|
|
|
HitObjects = new List<HitObject>(),
|
|
|
|
|
};
|
|
|
|
|
|
2017-07-18 08:59:43 +00:00
|
|
|
|
protected override Texture GetBackground() => game.Textures.Get(@"Backgrounds/bg4");
|
2017-07-18 07:51:34 +00:00
|
|
|
|
|
2017-07-18 08:44:45 +00:00
|
|
|
|
protected override Track GetTrack() => new TrackVirtual();
|
2017-07-18 07:51:34 +00:00
|
|
|
|
}
|
|
|
|
|
}
|