//Copyright (c) 2007-2016 ppy Pty Ltd . //Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Game.Database; using osu.Game.Beatmaps; using System; namespace osu.Game.Modes.Osu.Objects { public class Slider : OsuHitObject { public override double EndTime => StartTime + RepeatCount * Curve.Length / Velocity; public double Velocity; public override void SetDefaultsFromBeatmap(Beatmap beatmap) { Velocity = 100 / beatmap.BeatLengthAt(StartTime, true) * beatmap.BeatmapInfo.BaseDifficulty.SliderMultiplier; } public int RepeatCount; public SliderCurve Curve; } public enum CurveTypes { Catmull, Bezier, Linear, PerfectCurve } }