2023-06-23 00:37:25 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
2019-03-04 12:24:19 +08:00
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-09-24 04:19:03 +08:00
|
|
|
|
|
2019-06-18 14:00:33 +08:00
|
|
|
|
using System;
|
2018-09-10 03:51:38 +08:00
|
|
|
|
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;
|
2019-11-11 16:03:50 +08:00
|
|
|
|
using osu.Game.Rulesets;
|
2018-09-10 03:51:38 +08:00
|
|
|
|
|
2019-06-18 13:51:48 +08:00
|
|
|
|
namespace osu.Game.Tournament.Models
|
2018-09-10 03:51:38 +08:00
|
|
|
|
{
|
2019-06-18 14:00:33 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds the complete data required to operate the tournament system.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Serializable]
|
2018-09-10 03:51:38 +08:00
|
|
|
|
public class LadderInfo
|
|
|
|
|
{
|
2023-07-25 19:50:55 +08:00
|
|
|
|
public Bindable<RulesetInfo?> Ruleset = new Bindable<RulesetInfo?>();
|
2019-11-11 16:03:50 +08:00
|
|
|
|
|
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>();
|
2019-06-14 18:16:20 +08:00
|
|
|
|
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
|
|
|
|
|
2020-03-23 10:47:24 +08:00
|
|
|
|
[JsonIgnore] // updated manually in TournamentGameBase
|
2023-07-25 19:50:55 +08:00
|
|
|
|
public Bindable<TournamentMatch?> CurrentMatch = new Bindable<TournamentMatch?>();
|
2020-03-23 10:47:24 +08:00
|
|
|
|
|
|
|
|
|
public Bindable<int> ChromaKeyWidth = new BindableInt(1024)
|
|
|
|
|
{
|
|
|
|
|
MinValue = 640,
|
|
|
|
|
MaxValue = 1366,
|
|
|
|
|
};
|
2020-05-07 13:49:58 +08:00
|
|
|
|
|
|
|
|
|
public Bindable<int> PlayersPerTeam = new BindableInt(4)
|
|
|
|
|
{
|
|
|
|
|
MinValue = 3,
|
|
|
|
|
MaxValue = 4,
|
|
|
|
|
};
|
2022-08-31 12:44:06 +08:00
|
|
|
|
|
|
|
|
|
public Bindable<bool> AutoProgressScreens = new BindableBool(true);
|
2023-06-14 15:01:01 +08:00
|
|
|
|
|
|
|
|
|
public Bindable<bool> SplitMapPoolByMods = new BindableBool(true);
|
2023-10-28 13:30:33 +08:00
|
|
|
|
|
|
|
|
|
public Bindable<bool> DisplayTeamSeeds = new BindableBool();
|
2018-09-10 03:51:38 +08:00
|
|
|
|
}
|
|
|
|
|
}
|