mirror of
https://github.com/osukey/osukey.git
synced 2025-05-23 06:27:24 +09:00
Add duration to BaseHit.
This commit is contained in:
parent
7cee44ab1d
commit
9d6b19a2ee
@ -13,6 +13,8 @@ namespace osu.Game.Beatmaps.Objects
|
|||||||
public double StartTime;
|
public double StartTime;
|
||||||
public double? EndTime;
|
public double? EndTime;
|
||||||
|
|
||||||
|
public double Duration => (EndTime ?? StartTime) - StartTime;
|
||||||
|
|
||||||
public HitSampleInfo Sample;
|
public HitSampleInfo Sample;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user