mirror of
https://github.com/ppy/osu.git
synced 2026-05-25 06:20:02 +08:00
Add duration to BaseHit.
This commit is contained in:
@@ -13,6 +13,8 @@ namespace osu.Game.Beatmaps.Objects
|
||||
public double StartTime;
|
||||
public double? EndTime;
|
||||
|
||||
public double Duration => (EndTime ?? StartTime) - StartTime;
|
||||
|
||||
public HitSampleInfo Sample;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user