mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 16:57:25 +08:00
22 lines
914 B
C#
22 lines
914 B
C#
// 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.OnlinePlay.Components;
|
|
|
|
namespace osu.Game.Screens.OnlinePlay.Playlists
|
|
{
|
|
public class PlaylistsRoomManager : RoomManager
|
|
{
|
|
public readonly Bindable<double> TimeBetweenListingPolls = new Bindable<double>();
|
|
public readonly Bindable<double> TimeBetweenSelectionPolls = new Bindable<double>();
|
|
|
|
protected override IEnumerable<RoomPollingComponent> CreatePollingComponents() => new RoomPollingComponent[]
|
|
{
|
|
new ListingPollingComponent { TimeBetweenPolls = { BindTarget = TimeBetweenListingPolls } },
|
|
new SelectionPollingComponent { TimeBetweenPolls = { BindTarget = TimeBetweenSelectionPolls } }
|
|
};
|
|
}
|
|
}
|