// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Game.Rulesets.Objects; namespace osu.Game.Rulesets.Difficulty.Preprocessing { public class DifficultyHitObject { /// /// Milliseconds elapsed since the of the previous . /// public double DeltaTime { get; private set; } /// /// The this refers to. /// public readonly HitObject BaseObject; /// /// The previous to . /// public readonly HitObject LastObject; public DifficultyHitObject(HitObject hitObject, HitObject lastObject, double clockRate) { BaseObject = hitObject; LastObject = lastObject; DeltaTime = (hitObject.StartTime - lastObject.StartTime) / clockRate; } } }