mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:20:04 +08:00
Make return into IEnumerable
This commit is contained in:
parent
3a4878558f
commit
d20eb368f5
@ -183,6 +183,6 @@ namespace osu.Game.Screens.Multi.Components
|
||||
existing.CopyFrom(room);
|
||||
}
|
||||
|
||||
protected abstract RoomPollingComponent[] CreatePollingComponents();
|
||||
protected abstract IEnumerable<RoomPollingComponent> CreatePollingComponents();
|
||||
}
|
||||
}
|
||||
|
@ -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 } }
|
||||
|
Loading…
Reference in New Issue
Block a user