2018-11-07 21:29:04 +00:00
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
2018-11-09 08:54:05 +00:00
|
|
|
using Newtonsoft.Json;
|
|
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
|
2018-11-07 21:29:04 +00:00
|
|
|
namespace osu.Game.Tournament.Screens.Ladder.Components
|
|
|
|
{
|
|
|
|
public class BeatmapChoice
|
|
|
|
{
|
2018-11-09 08:54:05 +00:00
|
|
|
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
2018-11-07 21:29:04 +00:00
|
|
|
public TeamColour Team;
|
2018-11-09 08:54:05 +00:00
|
|
|
|
|
|
|
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
2018-11-07 21:29:04 +00:00
|
|
|
public ChoiceType Type;
|
2018-11-09 08:54:05 +00:00
|
|
|
|
2018-11-07 21:29:04 +00:00
|
|
|
public int BeatmapID;
|
|
|
|
}
|
|
|
|
|
2018-11-09 08:54:05 +00:00
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
2018-11-07 21:29:04 +00:00
|
|
|
public enum TeamColour
|
|
|
|
{
|
|
|
|
Red,
|
|
|
|
Blue
|
|
|
|
}
|
|
|
|
|
2018-11-09 08:54:05 +00:00
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
2018-11-07 21:29:04 +00:00
|
|
|
public enum ChoiceType
|
|
|
|
{
|
|
|
|
Pick,
|
|
|
|
Ban,
|
|
|
|
}
|
|
|
|
}
|