mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 20:22:55 +08:00
Begin conversion
This commit is contained in:
parent
b71caca131
commit
725a69d973
@ -16,14 +16,17 @@ namespace osu.Game.Rulesets.Catch.Beatmaps
|
|||||||
{
|
{
|
||||||
protected override IEnumerable<Type> ValidConversionTypes { get; } = new[] { typeof(IHasXPosition) };
|
protected override IEnumerable<Type> ValidConversionTypes { get; } = new[] { typeof(IHasXPosition) };
|
||||||
|
|
||||||
protected override IEnumerable<CatchBaseHit> ConvertHitObject(HitObject original, Beatmap beatmap)
|
protected override IEnumerable<CatchBaseHit> ConvertHitObject(HitObject obj, Beatmap beatmap)
|
||||||
{
|
{
|
||||||
var catchHit = original as CatchBaseHit;
|
var distanceData = obj as IHasDistance;
|
||||||
|
var repeatsData = obj as IHasRepeats;
|
||||||
|
var endTimeData = obj as IHasEndTime;
|
||||||
|
var curveData = obj as IHasCurve;
|
||||||
|
|
||||||
yield return catchHit ?? new Fruit
|
yield return new Fruit
|
||||||
{
|
{
|
||||||
StartTime = original.StartTime,
|
StartTime = obj.StartTime,
|
||||||
Position = ((IHasXPosition)original).X / OsuPlayfield.BASE_SIZE.X
|
Position = ((IHasXPosition)obj).X / OsuPlayfield.BASE_SIZE.X
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,11 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawable
|
|||||||
{
|
{
|
||||||
Children = new Framework.Graphics.Drawable[]
|
Children = new Framework.Graphics.Drawable[]
|
||||||
{
|
{
|
||||||
|
new Box
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Colour = Color4.Red,
|
||||||
|
},
|
||||||
new Pulp
|
new Pulp
|
||||||
{
|
{
|
||||||
RelativePositionAxes = Axes.Both,
|
RelativePositionAxes = Axes.Both,
|
||||||
|
Loading…
Reference in New Issue
Block a user