1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-19 01:03:02 +08:00
osu-lazer/osu.Game/Skinning/LegacyBeatmapSkin.cs

21 lines
807 B
C#
Raw Normal View History

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)
: base(createSkinInfo(beatmap), new LegacySkinResourceStore<BeatmapSetFileInfo>(beatmap.BeatmapSet, storage), audioManager, beatmap.Path)
2018-03-14 19:45:04 +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
}
}