mirror of
https://github.com/ppy/osu.git
synced 2025-02-20 05:56:42 +08:00
remove implementations
This commit is contained in:
parent
51e0304c54
commit
2bea69456e
@ -120,7 +120,5 @@ namespace osu.Game.Rulesets.Catch.Objects
|
||||
}
|
||||
|
||||
protected override HitWindows CreateHitWindows() => HitWindows.Empty;
|
||||
|
||||
public override string ToEditorString() => (IndexInCurrentCombo + 1).ToString();
|
||||
}
|
||||
}
|
||||
|
@ -22,8 +22,6 @@ namespace osu.Game.Rulesets.Mania.Objects
|
||||
|
||||
protected override HitWindows CreateHitWindows() => new ManiaHitWindows();
|
||||
|
||||
public override string ToEditorString() => $"{StartTime}|{Column}";
|
||||
|
||||
#region LegacyBeatmapEncoder
|
||||
|
||||
float IHasXPosition.X => Column;
|
||||
|
@ -130,7 +130,5 @@ namespace osu.Game.Rulesets.Osu.Objects
|
||||
}
|
||||
|
||||
protected override HitWindows CreateHitWindows() => new OsuHitWindows();
|
||||
|
||||
public override string ToEditorString() => (IndexInCurrentCombo + 1).ToString();
|
||||
}
|
||||
}
|
||||
|
@ -168,8 +168,6 @@ namespace osu.Game.Rulesets.Objects
|
||||
/// </summary>
|
||||
[NotNull]
|
||||
protected virtual HitWindows CreateHitWindows() => new HitWindows();
|
||||
|
||||
public virtual string ToEditorString() => string.Empty;
|
||||
}
|
||||
|
||||
public static class HitObjectExtensions
|
||||
|
@ -63,9 +63,6 @@ namespace osu.Game.Screens.Edit
|
||||
|
||||
protected bool HasUnsavedChanges => lastSavedHash != changeHandler.CurrentStateHash;
|
||||
|
||||
[Resolved]
|
||||
private GameHost host { get; set; }
|
||||
|
||||
[Resolved]
|
||||
private BeatmapManager beatmapManager { get; set; }
|
||||
|
||||
@ -110,7 +107,7 @@ namespace osu.Game.Screens.Edit
|
||||
private MusicController music { get; set; }
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours, OsuConfigManager config)
|
||||
private void load(OsuColour colours, GameHost host, OsuConfigManager config)
|
||||
{
|
||||
if (Beatmap.Value is DummyWorkingBeatmap)
|
||||
{
|
||||
@ -547,24 +544,10 @@ namespace osu.Game.Screens.Edit
|
||||
|
||||
protected void Copy()
|
||||
{
|
||||
var builder = new StringBuilder();
|
||||
const string suffix = " - ";
|
||||
|
||||
if (editorBeatmap.SelectedHitObjects.Count == 0)
|
||||
{
|
||||
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()))})");
|
||||
return;
|
||||
|
||||
clipboard.Value = new ClipboardContent(editorBeatmap).Serialize();
|
||||
}
|
||||
|
||||
builder.Append(suffix);
|
||||
host.GetClipboard()?.SetText(builder.ToString());
|
||||
clipboard.Value = new ClipboardContent(editorBeatmap).Serialize();
|
||||
}
|
||||
|
||||
protected void Paste()
|
||||
|
Loading…
Reference in New Issue
Block a user