mirror of
https://github.com/ppy/osu.git
synced 2024-12-21 14:02:54 +08:00
a3570e18dd
Here we use `IHasColumn` to support rulesets with columns, and so I moved that interface out into `osu.Game` from `osu.Game.Rulesets.Mania`. We also use the same threshold as the unsnap check to ensure that no problems slip through. Specifically where an object is simultaneously not concurrent and not unsnapped but still on the same tick.
31 lines
872 B
C#
31 lines
872 B
C#
// 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.
|
|
|
|
using osu.Framework.Bindables;
|
|
using osu.Game.Rulesets.Mania.Scoring;
|
|
using osu.Game.Rulesets.Objects;
|
|
using osu.Game.Rulesets.Objects.Types;
|
|
using osu.Game.Rulesets.Scoring;
|
|
|
|
namespace osu.Game.Rulesets.Mania.Objects
|
|
{
|
|
public abstract class ManiaHitObject : HitObject, IHasColumn, IHasXPosition
|
|
{
|
|
public readonly Bindable<int> ColumnBindable = new Bindable<int>();
|
|
|
|
public virtual int Column
|
|
{
|
|
get => ColumnBindable.Value;
|
|
set => ColumnBindable.Value = value;
|
|
}
|
|
|
|
protected override HitWindows CreateHitWindows() => new ManiaHitWindows();
|
|
|
|
#region LegacyBeatmapEncoder
|
|
|
|
float IHasXPosition.X => Column;
|
|
|
|
#endregion
|
|
}
|
|
}
|