1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-08 10:47:24 +08:00
osu-lazer/osu.Game.Rulesets.Osu/Objects/SliderTick.cs

23 lines
839 B
C#
Raw Normal View History

2018-01-05 19:21:19 +08:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
2017-03-02 17:45:20 +08:00
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
2018-01-25 17:52:03 +08:00
using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
2017-04-18 15:05:58 +08:00
namespace osu.Game.Rulesets.Osu.Objects
2017-02-13 03:38:05 +08:00
{
public class SliderTick : OsuHitObject
{
2018-01-23 12:58:43 +08:00
public int SpanIndex { get; set; }
2018-01-25 17:52:03 +08:00
public double SliderStartTime { get; set; }
protected override void ApplyDefaultsToSelf(ControlPointInfo controlPointInfo, BeatmapDifficulty difficulty)
{
base.ApplyDefaultsToSelf(controlPointInfo, difficulty);
// SliderTicks appear earlier and earlier going further into a Slider.
TimePreempt = StartTime - ((StartTime - SliderStartTime) / 2 + SliderStartTime - TimeFadein * 0.66f);
}
2017-02-13 03:38:05 +08:00
}
}