1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-17 03:42:53 +08:00
osu-lazer/osu.Game.Tournament/Models/LadderInfo.cs

31 lines
1.1 KiB
C#
Raw Normal View History

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