1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-24 16:07:25 +08:00
osu-lazer/osu.Game.Tournament/Screens/Ladder/Components/BeatmapChoice.cs

34 lines
792 B
C#
Raw Normal View History

2019-03-04 12:24:19 +08: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-11-08 05:29:04 +08:00
2018-11-09 16:54:05 +08:00
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
2018-11-08 05:29:04 +08:00
namespace osu.Game.Tournament.Screens.Ladder.Components
{
public class BeatmapChoice
{
2018-11-09 16:54:05 +08:00
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
2018-11-08 05:29:04 +08:00
public TeamColour Team;
2018-11-09 16:54:05 +08:00
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
2018-11-08 05:29:04 +08:00
public ChoiceType Type;
2018-11-09 16:54:05 +08:00
2018-11-08 05:29:04 +08:00
public int BeatmapID;
}
2018-11-09 16:54:05 +08:00
[JsonConverter(typeof(StringEnumConverter))]
2018-11-08 05:29:04 +08:00
public enum TeamColour
{
Red,
Blue
}
2018-11-09 16:54:05 +08:00
[JsonConverter(typeof(StringEnumConverter))]
2018-11-08 05:29:04 +08:00
public enum ChoiceType
{
Pick,
Ban,
}
}