1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-22 18:12:56 +08:00

remove implementations

This commit is contained in:
Nathan Alo 2021-03-26 15:24:33 +08:00
parent 51e0304c54
commit 2bea69456e
5 changed files with 3 additions and 28 deletions

View File

@ -120,7 +120,5 @@ namespace osu.Game.Rulesets.Catch.Objects
} }
protected override HitWindows CreateHitWindows() => HitWindows.Empty; protected override HitWindows CreateHitWindows() => HitWindows.Empty;
public override string ToEditorString() => (IndexInCurrentCombo + 1).ToString();
} }
} }

View File

@ -22,8 +22,6 @@ namespace osu.Game.Rulesets.Mania.Objects
protected override HitWindows CreateHitWindows() => new ManiaHitWindows(); protected override HitWindows CreateHitWindows() => new ManiaHitWindows();
public override string ToEditorString() => $"{StartTime}|{Column}";
#region LegacyBeatmapEncoder #region LegacyBeatmapEncoder
float IHasXPosition.X => Column; float IHasXPosition.X => Column;

View File

@ -130,7 +130,5 @@ namespace osu.Game.Rulesets.Osu.Objects
} }
protected override HitWindows CreateHitWindows() => new OsuHitWindows(); protected override HitWindows CreateHitWindows() => new OsuHitWindows();
public override string ToEditorString() => (IndexInCurrentCombo + 1).ToString();
} }
} }

View File

@ -168,8 +168,6 @@ namespace osu.Game.Rulesets.Objects
/// </summary> /// </summary>
[NotNull] [NotNull]
protected virtual HitWindows CreateHitWindows() => new HitWindows(); protected virtual HitWindows CreateHitWindows() => new HitWindows();
public virtual string ToEditorString() => string.Empty;
} }
public static class HitObjectExtensions public static class HitObjectExtensions

View File

@ -63,9 +63,6 @@ namespace osu.Game.Screens.Edit
protected bool HasUnsavedChanges => lastSavedHash != changeHandler.CurrentStateHash; protected bool HasUnsavedChanges => lastSavedHash != changeHandler.CurrentStateHash;
[Resolved]
private GameHost host { get; set; }
[Resolved] [Resolved]
private BeatmapManager beatmapManager { get; set; } private BeatmapManager beatmapManager { get; set; }
@ -110,7 +107,7 @@ namespace osu.Game.Screens.Edit
private MusicController music { get; set; } private MusicController music { get; set; }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(OsuColour colours, OsuConfigManager config) private void load(OsuColour colours, GameHost host, OsuConfigManager config)
{ {
if (Beatmap.Value is DummyWorkingBeatmap) if (Beatmap.Value is DummyWorkingBeatmap)
{ {
@ -547,24 +544,10 @@ namespace osu.Game.Screens.Edit
protected void Copy() protected void Copy()
{ {
var builder = new StringBuilder();
const string suffix = " - ";
if (editorBeatmap.SelectedHitObjects.Count == 0) if (editorBeatmap.SelectedHitObjects.Count == 0)
{ return;
builder.Append(clock.CurrentTime.ToEditorFormattedString());
}
else
{
var orderedHitObjects = editorBeatmap.SelectedHitObjects.OrderBy(h => h.StartTime);
builder.Append(orderedHitObjects.FirstOrDefault().StartTime.ToEditorFormattedString());
builder.Append($" ({string.Join(',', orderedHitObjects.Select(h => h.ToEditorString()))})");
clipboard.Value = new ClipboardContent(editorBeatmap).Serialize(); clipboard.Value = new ClipboardContent(editorBeatmap).Serialize();
}
builder.Append(suffix);
host.GetClipboard()?.SetText(builder.ToString());
} }
protected void Paste() protected void Paste()