mirror of https://github.com/ppy/osu
Add xmldoc and serialisable attributes
This commit is contained in:
parent
da20904a57
commit
6226889d1c
|
@ -1,11 +1,16 @@
|
|||
// 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.
|
||||
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
|
||||
namespace osu.Game.Tournament.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// A beatmap choice by a team from a tournament's map pool.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class BeatmapChoice
|
||||
{
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
|
|
|
@ -1,12 +1,17 @@
|
|||
// 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.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
using osu.Framework.Bindables;
|
||||
|
||||
namespace osu.Game.Tournament.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Holds the complete data required to operate the tournament system.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class LadderInfo
|
||||
{
|
||||
public BindableList<TournamentMatch> Matches = new BindableList<TournamentMatch>();
|
||||
|
|
|
@ -1,8 +1,15 @@
|
|||
// 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.
|
||||
|
||||
using System;
|
||||
|
||||
namespace osu.Game.Tournament.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// A mapping between two <see cref="TournamentMatch"/>es.
|
||||
/// Used for serialisation exclusively.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class TournamentProgression
|
||||
{
|
||||
public int SourceID;
|
||||
|
|
|
@ -8,6 +8,9 @@
|
|||
|
||||
namespace osu.Game.Tournament.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// A tournament round, containing many matches, generally executed in a short time period.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class TournamentRound
|
||||
{
|
||||
|
|
|
@ -8,6 +8,9 @@
|
|||
|
||||
namespace osu.Game.Tournament.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// A team representation. For official tournaments this is generally a country.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class TournamentTeam
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue