1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 08:07:24 +08:00
osu-lazer/osu.Game/Online/Multiplayer/Room.cs

26 lines
1.1 KiB
C#
Raw Normal View History

2018-04-13 17:19:50 +08:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Collections.Generic;
2018-12-03 19:50:40 +08:00
using System.Linq;
2018-04-13 17:19:50 +08:00
using osu.Framework.Configuration;
using osu.Game.Beatmaps;
using osu.Game.Users;
namespace osu.Game.Online.Multiplayer
{
public class Room
{
2018-12-03 17:30:26 +08:00
public Bindable<string> Name = new Bindable<string>("My awesome room!");
2018-04-13 17:19:50 +08:00
public Bindable<User> Host = new Bindable<User>();
2018-12-03 17:30:26 +08:00
public Bindable<RoomStatus> Status = new Bindable<RoomStatus>(new RoomStatusOpen());
2018-05-22 11:24:39 +08:00
public Bindable<RoomAvailability> Availability = new Bindable<RoomAvailability>();
2018-12-04 17:58:45 +08:00
public Bindable<GameType> Type = new Bindable<GameType>(new GameTypeTimeshift());
2018-04-13 17:19:50 +08:00
public Bindable<BeatmapInfo> Beatmap = new Bindable<BeatmapInfo>();
public Bindable<int?> MaxParticipants = new Bindable<int?>();
2018-12-03 19:50:40 +08:00
public Bindable<IEnumerable<User>> Participants = new Bindable<IEnumerable<User>>(Enumerable.Empty<User>());
public Bindable<bool> Created = new Bindable<bool>();
2018-04-13 17:19:50 +08:00
}
}