2019-02-05 15:14:37 +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.
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using osu.Framework.Allocation;
|
2019-02-21 18:04:31 +08:00
|
|
|
using osu.Framework.Bindables;
|
2019-02-05 15:14:37 +08:00
|
|
|
using osu.Framework.Graphics.Containers;
|
2021-11-04 17:02:44 +08:00
|
|
|
using osu.Game.Online.API.Requests.Responses;
|
2021-11-19 13:46:53 +08:00
|
|
|
using osu.Game.Online.Multiplayer;
|
2020-12-25 12:38:11 +08:00
|
|
|
using osu.Game.Online.Rooms;
|
2019-02-05 15:14:37 +08:00
|
|
|
|
2020-12-25 23:50:00 +08:00
|
|
|
namespace osu.Game.Screens.OnlinePlay
|
2019-02-05 15:14:37 +08:00
|
|
|
{
|
2021-02-18 14:47:33 +08:00
|
|
|
/// <summary>
|
|
|
|
/// A <see cref="CompositeDrawable"/> that exposes bindables for <see cref="Room"/> properties.
|
|
|
|
/// </summary>
|
2020-12-26 00:12:33 +08:00
|
|
|
public partial class OnlinePlayComposite : CompositeDrawable
|
2019-02-05 15:14:37 +08:00
|
|
|
{
|
|
|
|
[Resolved(typeof(Room))]
|
2024-11-12 00:38:31 +08:00
|
|
|
protected Bindable<RoomStatus> Status { get; private set; } = null!;
|
2019-02-05 15:14:37 +08:00
|
|
|
|
2022-02-21 18:02:21 +08:00
|
|
|
[Resolved(typeof(Room))]
|
2024-11-12 00:38:31 +08:00
|
|
|
protected Bindable<MatchType> Type { get; private set; } = null!;
|
2022-02-21 18:02:21 +08:00
|
|
|
|
|
|
|
[Resolved(typeof(Room))]
|
2024-11-12 00:38:31 +08:00
|
|
|
protected Bindable<Room.RoomPlaylistItemStats> PlaylistItemStats { get; private set; } = null!;
|
2022-02-21 18:02:21 +08:00
|
|
|
|
2019-02-05 15:14:37 +08:00
|
|
|
[Resolved(typeof(Room))]
|
2024-11-12 00:38:31 +08:00
|
|
|
protected BindableList<PlaylistItem> Playlist { get; private set; } = null!;
|
2019-02-05 15:14:37 +08:00
|
|
|
|
2022-02-24 15:12:15 +08:00
|
|
|
[Resolved(typeof(Room))]
|
2024-11-12 00:38:31 +08:00
|
|
|
protected Bindable<Room.RoomDifficultyRange> DifficultyRange { get; private set; } = null!;
|
2022-02-24 15:12:15 +08:00
|
|
|
|
2019-02-05 15:14:37 +08:00
|
|
|
[Resolved(typeof(Room))]
|
2024-11-12 00:38:31 +08:00
|
|
|
protected BindableList<APIUser> RecentParticipants { get; private set; } = null!;
|
2019-02-05 15:14:37 +08:00
|
|
|
|
|
|
|
[Resolved(typeof(Room))]
|
2024-11-12 00:38:31 +08:00
|
|
|
protected Bindable<int> ParticipantCount { get; private set; } = null!;
|
2019-02-05 15:14:37 +08:00
|
|
|
|
|
|
|
[Resolved(typeof(Room))]
|
2024-11-12 00:38:31 +08:00
|
|
|
protected Bindable<int?> MaxParticipants { get; private set; } = null!;
|
2019-02-05 15:14:37 +08:00
|
|
|
|
2021-02-02 16:57:23 +08:00
|
|
|
[Resolved(typeof(Room))]
|
2024-11-12 00:38:31 +08:00
|
|
|
protected Bindable<int?> MaxAttempts { get; private set; } = null!;
|
2021-02-02 16:57:23 +08:00
|
|
|
|
2021-02-16 12:32:14 +08:00
|
|
|
[Resolved(typeof(Room))]
|
2024-11-12 00:38:31 +08:00
|
|
|
public Bindable<PlaylistAggregateScore> UserScore { get; private set; } = null!;
|
2021-02-16 12:32:14 +08:00
|
|
|
|
2024-05-31 17:49:56 +08:00
|
|
|
[Resolved(typeof(Room))]
|
2024-11-12 00:38:31 +08:00
|
|
|
protected Bindable<DateTimeOffset?> StartDate { get; private set; } = null!;
|
2024-05-31 17:49:56 +08:00
|
|
|
|
2019-02-05 15:14:37 +08:00
|
|
|
[Resolved(typeof(Room))]
|
2024-11-12 00:38:31 +08:00
|
|
|
protected Bindable<DateTimeOffset?> EndDate { get; private set; } = null!;
|
2019-02-05 15:14:37 +08:00
|
|
|
|
|
|
|
[Resolved(typeof(Room))]
|
2024-11-12 00:38:31 +08:00
|
|
|
protected Bindable<RoomAvailability> Availability { get; private set; } = null!;
|
2019-02-05 15:14:37 +08:00
|
|
|
|
2021-11-19 14:45:45 +08:00
|
|
|
[Resolved(typeof(Room))]
|
2024-11-12 00:38:31 +08:00
|
|
|
public Bindable<string> Password { get; private set; } = null!;
|
2021-07-19 19:02:14 +08:00
|
|
|
|
2019-02-05 15:14:37 +08:00
|
|
|
[Resolved(typeof(Room))]
|
2024-11-12 00:38:31 +08:00
|
|
|
protected Bindable<TimeSpan?> Duration { get; private set; } = null!;
|
2021-02-16 16:35:44 +08:00
|
|
|
|
2021-11-19 14:45:45 +08:00
|
|
|
[Resolved(typeof(Room))]
|
2024-11-12 00:38:31 +08:00
|
|
|
protected Bindable<QueueMode> QueueMode { get; private set; } = null!;
|
2021-11-01 17:52:57 +08:00
|
|
|
|
2022-03-18 21:00:39 +08:00
|
|
|
[Resolved(typeof(Room))]
|
2024-11-12 00:38:31 +08:00
|
|
|
protected Bindable<TimeSpan> AutoStartDuration { get; private set; } = null!;
|
2022-03-18 21:00:39 +08:00
|
|
|
|
2022-08-31 18:49:04 +08:00
|
|
|
[Resolved(typeof(Room))]
|
2024-11-12 00:38:31 +08:00
|
|
|
protected Bindable<bool> AutoSkip { get; private set; } = null!;
|
2019-02-05 15:14:37 +08:00
|
|
|
}
|
|
|
|
}
|