osu/osu.Game.Tournament/Models/TournamentProgression.cs

28 lines
709 B
C#
Raw Normal View History

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-24 17:31:48 +00:00
2019-06-18 06:00:33 +00:00
using System;
2019-06-18 05:51:48 +00:00
namespace osu.Game.Tournament.Models
2018-09-24 17:31:48 +00:00
{
2019-06-18 06:00:33 +00:00
/// <summary>
/// A mapping between two <see cref="TournamentMatch"/>es.
/// Used for serialisation exclusively.
/// </summary>
[Serializable]
2018-09-24 17:31:48 +00:00
public class TournamentProgression
{
2019-06-13 08:04:57 +00:00
public int SourceID;
public int TargetID;
2018-09-24 17:31:48 +00:00
public bool Losers;
2019-06-13 08:04:57 +00:00
public TournamentProgression(int sourceID, int targetID, bool losers = false)
2018-09-24 17:31:48 +00:00
{
2019-06-13 08:04:57 +00:00
SourceID = sourceID;
TargetID = targetID;
2018-09-24 17:31:48 +00:00
Losers = losers;
}
}
}