osu/osu.Game/Screens/OnlinePlay/Playlists/PlaylistsRoomManager.cs

22 lines
914 B
C#
Raw Normal View History

2020-12-18 15:15:41 +00:00
// 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.
2020-12-20 08:36:23 +00:00
using System.Collections.Generic;
2020-12-18 15:15:41 +00:00
using osu.Framework.Bindables;
using osu.Game.Screens.OnlinePlay.Components;
2020-12-18 15:15:41 +00:00
namespace osu.Game.Screens.OnlinePlay.Playlists
2020-12-18 15:15:41 +00:00
{
2020-12-25 04:11:21 +00:00
public class PlaylistsRoomManager : RoomManager
2020-12-18 15:15:41 +00:00
{
public readonly Bindable<double> TimeBetweenListingPolls = new Bindable<double>();
public readonly Bindable<double> TimeBetweenSelectionPolls = new Bindable<double>();
2020-12-20 08:36:23 +00:00
protected override IEnumerable<RoomPollingComponent> CreatePollingComponents() => new RoomPollingComponent[]
2020-12-18 15:15:41 +00:00
{
new ListingPollingComponent { TimeBetweenPolls = { BindTarget = TimeBetweenListingPolls } },
new SelectionPollingComponent { TimeBetweenPolls = { BindTarget = TimeBetweenSelectionPolls } }
};
}
}