mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Use CreateCopy instead of Clone interface
I was going for conformity by using the IClonable interface, but it doesn't look like we use it anywhere else in the project.
This commit is contained in:
@ -11,7 +11,7 @@ using osu.Framework.Lists;
|
||||
namespace osu.Game.Beatmaps.ControlPoints
|
||||
{
|
||||
[Serializable]
|
||||
public class ControlPointInfo : ICloneable
|
||||
public class ControlPointInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// All control points grouped by time.
|
||||
@ -298,7 +298,7 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
}
|
||||
}
|
||||
|
||||
public object Clone()
|
||||
public ControlPointInfo CreateCopy()
|
||||
{
|
||||
var controlPointInfo = new ControlPointInfo();
|
||||
|
||||
|
@ -112,7 +112,7 @@ namespace osu.Game.Beatmaps
|
||||
// Convert
|
||||
IBeatmap converted = converter.Convert(cancellationSource.Token);
|
||||
|
||||
converted.ControlPointInfo = (ControlPointInfo)converted.ControlPointInfo.Clone();
|
||||
converted.ControlPointInfo = converted.ControlPointInfo.CreateCopy();
|
||||
|
||||
// Apply conversion mods to the result
|
||||
foreach (var mod in mods.OfType<IApplicableAfterBeatmapConversion>())
|
||||
|
Reference in New Issue
Block a user