mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 16:19:35 +08:00
Copy time between ControlPoint
s
This commit is contained in:
parent
1c3c32b724
commit
34f875187c
@ -15,11 +15,9 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
/// The time at which the control point takes effect.
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public double Time => controlPointGroup?.Time ?? 0;
|
||||
public double Time { get; set; }
|
||||
|
||||
private ControlPointGroup controlPointGroup;
|
||||
|
||||
public void AttachGroup(ControlPointGroup pointGroup) => controlPointGroup = pointGroup;
|
||||
public void AttachGroup(ControlPointGroup pointGroup) => Time = pointGroup.Time;
|
||||
|
||||
public int CompareTo(ControlPoint other) => Time.CompareTo(other.Time);
|
||||
|
||||
@ -46,6 +44,7 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
|
||||
public virtual void CopyFrom(ControlPoint other)
|
||||
{
|
||||
Time = other.Time;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user