2019-02-05 07:14:37 +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.
|
|
|
|
|
|
|
|
using System;
|
2021-02-16 08:35:44 +00:00
|
|
|
using JetBrains.Annotations;
|
2019-02-05 07:14:37 +00:00
|
|
|
using osu.Framework.Allocation;
|
2019-02-21 10:04:31 +00:00
|
|
|
using osu.Framework.Bindables;
|
2019-02-05 07:14:37 +00:00
|
|
|
using osu.Framework.Graphics.Containers;
|
2020-12-25 04:38:11 +00:00
|
|
|
using osu.Game.Online.Rooms;
|
2021-02-16 08:35:44 +00:00
|
|
|
using osu.Game.Screens.OnlinePlay.Match;
|
2019-02-05 07:14:37 +00:00
|
|
|
using osu.Game.Users;
|
|
|
|
|
2020-12-25 15:50:00 +00:00
|
|
|
namespace osu.Game.Screens.OnlinePlay
|
2019-02-05 07:14:37 +00:00
|
|
|
{
|
2020-12-25 16:12:33 +00:00
|
|
|
public class OnlinePlayComposite : CompositeDrawable
|
2019-02-05 07:14:37 +00:00
|
|
|
{
|
|
|
|
[Resolved(typeof(Room))]
|
2021-02-16 10:29:40 +00:00
|
|
|
protected Bindable<long?> RoomID { get; private set; }
|
2019-02-05 07:14:37 +00:00
|
|
|
|
2019-04-25 08:36:17 +00:00
|
|
|
[Resolved(typeof(Room), nameof(Room.Name))]
|
|
|
|
protected Bindable<string> RoomName { get; private set; }
|
2019-02-05 07:14:37 +00:00
|
|
|
|
|
|
|
[Resolved(typeof(Room))]
|
2019-02-05 10:00:01 +00:00
|
|
|
protected Bindable<User> Host { get; private set; }
|
2019-02-05 07:14:37 +00:00
|
|
|
|
|
|
|
[Resolved(typeof(Room))]
|
2019-02-05 10:00:01 +00:00
|
|
|
protected Bindable<RoomStatus> Status { get; private set; }
|
2019-02-05 07:14:37 +00:00
|
|
|
|
|
|
|
[Resolved(typeof(Room))]
|
2019-02-05 10:00:01 +00:00
|
|
|
protected Bindable<GameType> Type { get; private set; }
|
2019-02-05 07:14:37 +00:00
|
|
|
|
|
|
|
[Resolved(typeof(Room))]
|
2019-02-05 10:00:01 +00:00
|
|
|
protected BindableList<PlaylistItem> Playlist { get; private set; }
|
2019-02-05 07:14:37 +00:00
|
|
|
|
|
|
|
[Resolved(typeof(Room))]
|
2020-02-27 10:42:28 +00:00
|
|
|
protected BindableList<User> RecentParticipants { get; private set; }
|
2019-02-05 07:14:37 +00:00
|
|
|
|
|
|
|
[Resolved(typeof(Room))]
|
2019-02-05 10:00:01 +00:00
|
|
|
protected Bindable<int> ParticipantCount { get; private set; }
|
2019-02-05 07:14:37 +00:00
|
|
|
|
|
|
|
[Resolved(typeof(Room))]
|
2019-02-05 10:00:01 +00:00
|
|
|
protected Bindable<int?> MaxParticipants { get; private set; }
|
2019-02-05 07:14:37 +00:00
|
|
|
|
2021-02-02 08:57:23 +00:00
|
|
|
[Resolved(typeof(Room))]
|
|
|
|
protected Bindable<int?> MaxAttempts { get; private set; }
|
|
|
|
|
2021-02-16 04:32:14 +00:00
|
|
|
[Resolved(typeof(Room))]
|
|
|
|
public Bindable<PlaylistAggregateScore> UserScore { get; private set; }
|
|
|
|
|
2019-02-05 07:14:37 +00:00
|
|
|
[Resolved(typeof(Room))]
|
2020-12-21 07:18:39 +00:00
|
|
|
protected Bindable<DateTimeOffset?> EndDate { get; private set; }
|
2019-02-05 07:14:37 +00:00
|
|
|
|
|
|
|
[Resolved(typeof(Room))]
|
2019-02-05 10:00:01 +00:00
|
|
|
protected Bindable<RoomAvailability> Availability { get; private set; }
|
2019-02-05 07:14:37 +00:00
|
|
|
|
|
|
|
[Resolved(typeof(Room))]
|
2020-12-21 07:18:39 +00:00
|
|
|
protected Bindable<TimeSpan?> Duration { get; private set; }
|
2021-02-16 08:35:44 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// The currently selected item in the <see cref="RoomSubScreen"/>.
|
|
|
|
/// May be null if this <see cref="OnlinePlayComposite"/> is not inside a <see cref="RoomSubScreen"/>.
|
|
|
|
/// </summary>
|
|
|
|
[CanBeNull]
|
2021-02-16 10:26:51 +00:00
|
|
|
[Resolved(CanBeNull = true)]
|
2021-02-16 08:35:44 +00:00
|
|
|
protected IBindable<PlaylistItem> SelectedItem { get; private set; }
|
2019-02-05 07:14:37 +00:00
|
|
|
}
|
|
|
|
}
|