2019-01-24 16:43:03 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
|
#nullable disable
|
|
|
|
|
|
2019-02-21 18:04:31 +08:00
|
|
|
|
using osu.Framework.Bindables;
|
2019-09-06 14:24:00 +08:00
|
|
|
|
using osu.Game.Rulesets.Mania.Scoring;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
using osu.Game.Rulesets.Objects;
|
2020-04-21 15:44:26 +08:00
|
|
|
|
using osu.Game.Rulesets.Objects.Types;
|
2019-09-06 14:24:00 +08:00
|
|
|
|
using osu.Game.Rulesets.Scoring;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mania.Objects
|
|
|
|
|
{
|
2020-04-21 15:44:26 +08:00
|
|
|
|
public abstract class ManiaHitObject : HitObject, IHasColumn, IHasXPosition
|
2018-04-13 17:19:50 +08:00
|
|
|
|
{
|
2018-11-15 20:37:22 +08:00
|
|
|
|
public readonly Bindable<int> ColumnBindable = new Bindable<int>();
|
|
|
|
|
|
|
|
|
|
public virtual int Column
|
|
|
|
|
{
|
2019-02-21 17:56:34 +08:00
|
|
|
|
get => ColumnBindable.Value;
|
2018-11-15 20:37:22 +08:00
|
|
|
|
set => ColumnBindable.Value = value;
|
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2018-05-17 12:35:06 +08:00
|
|
|
|
protected override HitWindows CreateHitWindows() => new ManiaHitWindows();
|
2020-04-21 15:44:26 +08:00
|
|
|
|
|
|
|
|
|
#region LegacyBeatmapEncoder
|
|
|
|
|
|
|
|
|
|
float IHasXPosition.X => Column;
|
|
|
|
|
|
|
|
|
|
#endregion
|
2018-04-13 17:19:50 +08:00
|
|
|
|
}
|
|
|
|
|
}
|