1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 14:03:22 +08:00

Invert getters and setters for EndTime / Duration.

This commit is contained in:
smoogipooo 2017-03-17 14:43:00 +09:00
parent d2194e3d2a
commit d478a58a89

View File

@ -10,9 +10,9 @@ namespace osu.Game.Modes.Taiko.Objects
{ {
public class Bash : TaikoHitObject, IHasEndTime public class Bash : TaikoHitObject, IHasEndTime
{ {
public double EndTime => StartTime + Duration; public double EndTime { get; set; }
public double Duration { get; set; } public double Duration => EndTime - StartTime;
/// <summary> /// <summary>
/// The number of hits required to complete the bash successfully. /// The number of hits required to complete the bash successfully.