mirror of
https://github.com/ppy/osu.git
synced 2024-11-17 22:52:54 +08:00
21 lines
555 B
C#
21 lines
555 B
C#
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Game.Beatmaps.Samples;
|
|
|
|
namespace osu.Game.Beatmaps.Objects
|
|
{
|
|
/// <summary>
|
|
/// A hitobject describes a point in a beatmap
|
|
/// </summary>
|
|
public abstract class BaseHit
|
|
{
|
|
public double StartTime;
|
|
public double? EndTime;
|
|
|
|
public double Duration => (EndTime ?? StartTime) - StartTime;
|
|
|
|
public HitSampleInfo Sample;
|
|
}
|
|
}
|