2017-03-11 15:34:21 +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 osu.Game.Beatmaps;
|
|
|
|
|
using osu.Game.Modes.Catch.Objects;
|
|
|
|
|
using System.Collections.Generic;
|
2017-04-17 06:44:46 +00:00
|
|
|
|
using System;
|
2017-04-17 08:25:29 +00:00
|
|
|
|
using osu.Game.Modes.Objects.Types;
|
2017-04-18 00:32:22 +00:00
|
|
|
|
using osu.Game.Modes.Beatmaps;
|
2017-03-11 15:34:21 +00:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Modes.Catch.Beatmaps
|
|
|
|
|
{
|
2017-04-18 00:38:52 +00:00
|
|
|
|
internal class CatchBeatmapConverter : BeatmapConverter<CatchBaseHit>
|
2017-03-11 15:34:21 +00:00
|
|
|
|
{
|
2017-04-18 00:38:52 +00:00
|
|
|
|
public override IEnumerable<Type> ValidConversionTypes { get; } = new[] { typeof(IHasXPosition) };
|
2017-04-17 06:44:46 +00:00
|
|
|
|
|
2017-04-18 00:38:52 +00:00
|
|
|
|
public override Beatmap<CatchBaseHit> Convert(Beatmap original)
|
2017-03-11 15:34:21 +00:00
|
|
|
|
{
|
|
|
|
|
return new Beatmap<CatchBaseHit>(original)
|
|
|
|
|
{
|
|
|
|
|
HitObjects = new List<CatchBaseHit>() // Todo: Convert HitObjects
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|