mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Update with proper playlist usage
This commit is contained in:
@ -18,9 +18,6 @@ namespace osu.Game.Online.Multiplayer
|
||||
[JsonProperty("id")]
|
||||
public Bindable<int?> RoomID { get; } = new Bindable<int?>();
|
||||
|
||||
[JsonIgnore]
|
||||
public readonly Bindable<BeatmapInfo> Beatmap = new Bindable<BeatmapInfo>();
|
||||
|
||||
[JsonProperty("name")]
|
||||
public readonly Bindable<string> Name = new Bindable<string>("My awesome room!");
|
||||
|
||||
@ -52,15 +49,6 @@ namespace osu.Game.Online.Multiplayer
|
||||
public Bindable<int?> MaxParticipants = new Bindable<int?>();
|
||||
public Bindable<IEnumerable<User>> Participants = new Bindable<IEnumerable<User>>(Enumerable.Empty<User>());
|
||||
|
||||
public Room()
|
||||
{
|
||||
Beatmap.BindValueChanged(b =>
|
||||
{
|
||||
Playlist.Clear();
|
||||
Playlist.Add(new PlaylistItem { Beatmap = b });
|
||||
});
|
||||
}
|
||||
|
||||
public void CopyFrom(Room other)
|
||||
{
|
||||
RoomID.Value = other.RoomID;
|
||||
|
Reference in New Issue
Block a user