1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-17 07:22:55 +08:00
osu-lazer/osu.Game/Screens/OnlinePlay/Playlists/PlaylistsRoomManager.cs

22 lines
914 B
C#
Raw Normal View History

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