Update basic structure of Catch project

This commit is contained in:
Dean Herbert
2017-08-02 19:37:20 +09:00
parent b8d67f65af
commit 554d0d6fb8
3 changed files with 85 additions and 16 deletions

View File

@ -8,6 +8,7 @@ using System;
using osu.Game.Rulesets.Objects.Types;
using osu.Game.Rulesets.Beatmaps;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Osu.UI;
namespace osu.Game.Rulesets.Catch.Beatmaps
{
@ -17,7 +18,13 @@ namespace osu.Game.Rulesets.Catch.Beatmaps
protected override IEnumerable<CatchBaseHit> ConvertHitObject(HitObject original, Beatmap beatmap)
{
yield return null;
var catchHit = original as CatchBaseHit;
yield return catchHit ?? new Fruit
{
StartTime = original.StartTime,
Position = ((IHasXPosition)original).X / OsuPlayfield.BASE_SIZE.X
};
}
}
}