mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 09:42:54 +08:00
swap type arguments order for something more logical i think
This commit is contained in:
parent
fcda194c96
commit
3c3678ffbd
@ -499,7 +499,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
|
||||
|
||||
editorBeatmap.SelectedHitObjects.Clear();
|
||||
|
||||
var controlPointsProxy = new ListCommandProxy<BindableList<PathControlPoint>, PathControlPoint, CommandProxy<PathControlPoint>>(commandHandler, controlPoints);
|
||||
var controlPointsProxy = new ListCommandProxy<BindableList<PathControlPoint>, CommandProxy<PathControlPoint>, PathControlPoint>(commandHandler, controlPoints);
|
||||
|
||||
foreach (var splitPoint in controlPointsToSplitAt)
|
||||
{
|
||||
|
@ -27,7 +27,7 @@ namespace osu.Game.Screens.Edit.Commands
|
||||
public void Submit(IEditorCommand command) => CommandHandler.SafeSubmit(command);
|
||||
}
|
||||
|
||||
public readonly struct ListCommandProxy<T, TItem, TItemProxy> : ICommandProxy<T>, IList<TItemProxy> where T : IList<TItem> where TItemProxy : ICommandProxy<TItem>, new()
|
||||
public readonly struct ListCommandProxy<T, TItemProxy, TItem> : ICommandProxy<T>, IList<TItemProxy> where T : IList<TItem> where TItemProxy : ICommandProxy<TItem>, new()
|
||||
{
|
||||
public ListCommandProxy(EditorCommandHandler? commandHandler, T target)
|
||||
{
|
||||
|
@ -13,8 +13,8 @@ namespace osu.Game.Screens.Edit.Commands
|
||||
|
||||
public static void SetExpectedDistance(this CommandProxy<SliderPath> proxy, double? value) => proxy.Submit(new SetExpectedDistanceCommand(proxy.Target, value));
|
||||
|
||||
public static ListCommandProxy<BindableList<PathControlPoint>, PathControlPoint, CommandProxy<PathControlPoint>> ControlPoints(this CommandProxy<SliderPath> proxy) =>
|
||||
new ListCommandProxy<BindableList<PathControlPoint>, PathControlPoint, CommandProxy<PathControlPoint>>(proxy.CommandHandler, proxy.Target.ControlPoints);
|
||||
public static ListCommandProxy<BindableList<PathControlPoint>, CommandProxy<PathControlPoint>, PathControlPoint> ControlPoints(this CommandProxy<SliderPath> proxy) =>
|
||||
new ListCommandProxy<BindableList<PathControlPoint>, CommandProxy<PathControlPoint>, PathControlPoint>(proxy.CommandHandler, proxy.Target.ControlPoints);
|
||||
|
||||
public static IEnumerable<double> GetSegmentEnds(this ICommandProxy<SliderPath> proxy) => proxy.Target.GetSegmentEnds();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user