2018-03-14 19:45:04 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2018-03-15 23:14:29 +08:00
|
|
|
|
using osu.Framework.Audio;
|
2018-03-14 19:45:04 +08:00
|
|
|
|
using osu.Framework.IO.Stores;
|
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Skinning
|
|
|
|
|
{
|
2018-03-22 11:50:48 +08:00
|
|
|
|
public class LegacyBeatmapSkin : LegacySkin
|
2018-03-14 19:45:04 +08:00
|
|
|
|
{
|
2018-03-22 11:50:48 +08:00
|
|
|
|
public LegacyBeatmapSkin(BeatmapInfo beatmap, IResourceStore<byte[]> storage, AudioManager audioManager)
|
2018-03-22 11:50:23 +08:00
|
|
|
|
: base(createSkinInfo(beatmap), new LegacySkinResourceStore<BeatmapSetFileInfo>(beatmap.BeatmapSet, storage), audioManager, beatmap.Path)
|
2018-03-14 19:45:04 +08:00
|
|
|
|
{
|
|
|
|
|
}
|
2018-03-22 11:50:23 +08:00
|
|
|
|
|
|
|
|
|
private static SkinInfo createSkinInfo(BeatmapInfo beatmap) =>
|
|
|
|
|
new SkinInfo { Name = beatmap.ToString(), Creator = beatmap.Metadata.Author.ToString() };
|
2018-03-14 19:45:04 +08:00
|
|
|
|
}
|
|
|
|
|
}
|