1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 19:07:19 +08:00

29 lines
973 B
C#
Raw Normal View History

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