// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using System.Collections.Generic; using Newtonsoft.Json; using osu.Framework.Bindables; namespace osu.Game.Tournament.Models { /// /// A tournament round, containing many matches, generally executed in a short time period. /// [Serializable] public class TournamentRound { public readonly Bindable Name = new Bindable(); public readonly Bindable Description = new Bindable(); public readonly BindableInt BestOf = new BindableInt(9) { Default = 9, MinValue = 3, MaxValue = 23 }; [JsonProperty] public readonly BindableList Beatmaps = new BindableList(); public readonly Bindable StartDate = new Bindable { Value = DateTimeOffset.UtcNow }; // only used for serialisation public List Matches = new List(); public override string ToString() => Name.Value ?? "None"; } }