1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 20:47:28 +08:00

Make return into IEnumerable

This commit is contained in:
smoogipoo 2020-12-20 17:36:23 +09:00
parent 3a4878558f
commit d20eb368f5
2 changed files with 3 additions and 2 deletions

View File

@ -183,6 +183,6 @@ namespace osu.Game.Screens.Multi.Components
existing.CopyFrom(room);
}
protected abstract RoomPollingComponent[] CreatePollingComponents();
protected abstract IEnumerable<RoomPollingComponent> CreatePollingComponents();
}
}

View File

@ -1,6 +1,7 @@
// 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.Collections.Generic;
using osu.Framework.Bindables;
using osu.Game.Screens.Multi.Components;
@ -11,7 +12,7 @@ namespace osu.Game.Screens.Multi.Timeshift
public readonly Bindable<double> TimeBetweenListingPolls = new Bindable<double>();
public readonly Bindable<double> TimeBetweenSelectionPolls = new Bindable<double>();
protected override RoomPollingComponent[] CreatePollingComponents() => new RoomPollingComponent[]
protected override IEnumerable<RoomPollingComponent> CreatePollingComponents() => new RoomPollingComponent[]
{
new ListingPollingComponent { TimeBetweenPolls = { BindTarget = TimeBetweenListingPolls } },
new SelectionPollingComponent { TimeBetweenPolls = { BindTarget = TimeBetweenSelectionPolls } }