2019-03-04 12:24:19 +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.
|
2018-09-24 04:19:03 +08:00
|
|
|
|
2018-10-14 04:19:50 +08:00
|
|
|
using System;
|
2018-09-24 22:30:37 +08:00
|
|
|
using System.Collections.Generic;
|
2018-10-16 15:07:59 +08:00
|
|
|
using Newtonsoft.Json;
|
2019-03-02 12:40:43 +08:00
|
|
|
using osu.Framework.Bindables;
|
2018-09-24 22:30:37 +08:00
|
|
|
|
2018-09-24 04:19:03 +08:00
|
|
|
namespace osu.Game.Tournament.Screens.Ladder.Components
|
|
|
|
{
|
2018-10-16 15:07:59 +08:00
|
|
|
[Serializable]
|
2018-09-24 04:19:03 +08:00
|
|
|
public class TournamentGrouping
|
|
|
|
{
|
2018-10-13 06:10:13 +08:00
|
|
|
public readonly Bindable<string> Name = new Bindable<string>();
|
|
|
|
public readonly Bindable<string> Description = new Bindable<string>();
|
2018-09-24 04:19:03 +08:00
|
|
|
|
2018-10-14 00:03:04 +08:00
|
|
|
public readonly BindableInt BestOf = new BindableInt(9) { Default = 9, MinValue = 3, MaxValue = 23 };
|
2018-09-24 22:30:37 +08:00
|
|
|
|
2018-10-16 15:07:59 +08:00
|
|
|
[JsonProperty]
|
2018-10-14 17:00:28 +08:00
|
|
|
public readonly List<GroupingBeatmap> Beatmaps = new List<GroupingBeatmap>();
|
|
|
|
|
2018-10-14 04:19:50 +08:00
|
|
|
public readonly Bindable<DateTimeOffset> StartDate = new Bindable<DateTimeOffset>();
|
|
|
|
|
2019-06-14 18:16:20 +08:00
|
|
|
// only used for serialisation
|
2018-09-24 22:30:37 +08:00
|
|
|
public List<int> Pairings = new List<int>();
|
2018-11-15 13:12:41 +08:00
|
|
|
|
|
|
|
public override string ToString() => Name.Value ?? "None";
|
2018-09-24 04:19:03 +08:00
|
|
|
}
|
|
|
|
}
|