mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Remove necessity of AutoGenerated flag
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System;
|
||||
@ -12,11 +12,6 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
/// </summary>
|
||||
public double Time => controlPointGroup?.Time ?? 0;
|
||||
|
||||
/// <summary>
|
||||
/// Whether this timing point was generated internally, as opposed to parsed from the underlying beatmap.
|
||||
/// </summary>
|
||||
internal bool AutoGenerated;
|
||||
|
||||
private ControlPointGroup controlPointGroup;
|
||||
|
||||
public void AttachGroup(ControlPointGroup pointGroup) => this.controlPointGroup = pointGroup;
|
||||
|
@ -177,7 +177,7 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
GroupAt(time, true).Add(newPoint);
|
||||
}
|
||||
|
||||
public ControlPointGroup GroupAt(double time, bool createIfNotExisting)
|
||||
public ControlPointGroup GroupAt(double time, bool createIfNotExisting = false)
|
||||
{
|
||||
var existing = Groups.FirstOrDefault(g => g.Time == time);
|
||||
|
||||
|
Reference in New Issue
Block a user