Proper Bindable usage

This commit is contained in:
DrabWeb
2017-05-22 13:05:18 -03:00
parent 65df2d2b70
commit 25b457e994
3 changed files with 55 additions and 45 deletions

View File

@ -2,6 +2,7 @@
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.ComponentModel;
using osu.Framework.Configuration;
using osu.Game.Database;
using osu.Game.Users;
@ -9,10 +10,10 @@ namespace osu.Game.Online.Multiplayer
{
public class Room
{
public string Name { get; set; }
public User Host { get; set; }
public RoomStatus Status { get; set; }
public BeatmapMetadata Beatmap { get; set; }
public Bindable<string> Name = new Bindable<string>();
public Bindable<User> Host = new Bindable<User>();
public Bindable<RoomStatus> Status = new Bindable<RoomStatus>();
public Bindable<BeatmapMetadata> Beatmap = new Bindable<BeatmapMetadata>();
}
public enum RoomStatus