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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.5 KiB
C#
Raw Normal View History

2019-03-04 13:24:19 +09: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.
2022-06-17 16:37:17 +09:00
#nullable disable
2019-06-18 15:00:33 +09:00
using System;
using System.Collections.Generic;
2018-11-07 01:20:32 +09:00
using Newtonsoft.Json;
2019-03-02 13:40:43 +09:00
using osu.Framework.Bindables;
using osu.Game.Rulesets;
2019-06-18 14:51:48 +09:00
namespace osu.Game.Tournament.Models
{
2019-06-18 15:00:33 +09: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 14:57:05 +09:00
public BindableList<TournamentMatch> Matches = new BindableList<TournamentMatch>();
2019-06-18 14:44:15 +09: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 01:20:32 +09:00
[JsonIgnore] // updated manually in TournamentGameBase
2019-06-18 14:57:05 +09:00
public Bindable<TournamentMatch> CurrentMatch = new Bindable<TournamentMatch>();
public Bindable<int> ChromaKeyWidth = new BindableInt(1024)
{
MinValue = 640,
MaxValue = 1366,
};
public Bindable<int> PlayersPerTeam = new BindableInt(4)
{
MinValue = 3,
MaxValue = 4,
};
public Bindable<bool> AutoProgressScreens = new BindableBool(true);
}
}