2019-01-24 08:43:03 +00: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 09:19:50 +00:00
|
|
|
|
|
2019-02-21 10:04:31 +00:00
|
|
|
|
using osu.Framework.Bindables;
|
2019-09-06 06:24:00 +00:00
|
|
|
|
using osu.Game.Rulesets.Mania.Scoring;
|
2017-04-18 07:05:58 +00:00
|
|
|
|
using osu.Game.Rulesets.Objects;
|
2020-04-21 07:44:26 +00:00
|
|
|
|
using osu.Game.Rulesets.Objects.Types;
|
2019-09-06 06:24:00 +00:00
|
|
|
|
using osu.Game.Rulesets.Scoring;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2017-04-18 07:05:58 +00:00
|
|
|
|
namespace osu.Game.Rulesets.Mania.Objects
|
2016-09-02 09:27:38 +00:00
|
|
|
|
{
|
2020-04-21 07:44:26 +00:00
|
|
|
|
public abstract class ManiaHitObject : HitObject, IHasColumn, IHasXPosition
|
2016-09-02 09:27:38 +00:00
|
|
|
|
{
|
2022-07-19 01:35:07 +00:00
|
|
|
|
private HitObjectProperty<int> column;
|
|
|
|
|
|
|
|
|
|
public Bindable<int> ColumnBindable => column.Bindable;
|
2018-11-15 12:37:22 +00:00
|
|
|
|
|
|
|
|
|
public virtual int Column
|
|
|
|
|
{
|
2022-07-19 01:35:07 +00:00
|
|
|
|
get => column.Value;
|
|
|
|
|
set => column.Value = value;
|
2018-11-15 12:37:22 +00:00
|
|
|
|
}
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2018-05-17 04:35:06 +00:00
|
|
|
|
protected override HitWindows CreateHitWindows() => new ManiaHitWindows();
|
2020-04-21 07:44:26 +00:00
|
|
|
|
|
|
|
|
|
#region LegacyBeatmapEncoder
|
|
|
|
|
|
|
|
|
|
float IHasXPosition.X => Column;
|
|
|
|
|
|
|
|
|
|
#endregion
|
2016-09-02 09:27:38 +00:00
|
|
|
|
}
|
|
|
|
|
}
|