2019-03-04 04:24:19 +00: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-23 20:19:03 +00:00
|
|
|
|
2019-06-18 06:00:33 +00:00
|
|
|
using System;
|
2018-09-09 19:51:38 +00:00
|
|
|
using System.Collections.Generic;
|
2018-11-06 16:20:32 +00:00
|
|
|
using Newtonsoft.Json;
|
2019-03-02 04:40:43 +00:00
|
|
|
using osu.Framework.Bindables;
|
2018-09-09 19:51:38 +00:00
|
|
|
|
2019-06-18 05:51:48 +00:00
|
|
|
namespace osu.Game.Tournament.Models
|
2018-09-09 19:51:38 +00:00
|
|
|
{
|
2019-06-18 06:00:33 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Holds the complete data required to operate the tournament system.
|
|
|
|
/// </summary>
|
|
|
|
[Serializable]
|
2018-09-09 19:51:38 +00:00
|
|
|
public class LadderInfo
|
|
|
|
{
|
2019-06-18 05:57:05 +00:00
|
|
|
public BindableList<TournamentMatch> Matches = new BindableList<TournamentMatch>();
|
2019-06-18 05:44:15 +00:00
|
|
|
public BindableList<TournamentRound> Rounds = new BindableList<TournamentRound>();
|
2019-06-14 10:16:20 +00:00
|
|
|
public BindableList<TournamentTeam> Teams = new BindableList<TournamentTeam>();
|
|
|
|
|
|
|
|
// only used for serialisation
|
|
|
|
public List<TournamentProgression> Progressions = new List<TournamentProgression>();
|
2018-11-06 16:20:32 +00:00
|
|
|
|
|
|
|
[JsonIgnore]
|
2019-06-18 05:57:05 +00:00
|
|
|
public Bindable<TournamentMatch> CurrentMatch = new Bindable<TournamentMatch>();
|
2018-09-09 19:51:38 +00:00
|
|
|
}
|
|
|
|
}
|