1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 22:47:20 +08:00

41 lines
927 B
C#
Raw Normal View History

2019-03-04 13:24:19 +09: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 06:29:04 +09:00
2022-06-17 16:37:17 +09:00
#nullable disable
2019-06-18 15:00:33 +09:00
using System;
2018-11-09 17:54:05 +09:00
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
2019-06-18 14:51:48 +09:00
namespace osu.Game.Tournament.Models
2018-11-08 06:29:04 +09:00
{
2019-06-18 15:00:33 +09:00
/// <summary>
/// A beatmap choice by a team from a tournament's map pool.
/// </summary>
[Serializable]
2018-11-08 06:29:04 +09:00
public class BeatmapChoice
{
2018-11-09 17:54:05 +09:00
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
2018-11-08 06:29:04 +09:00
public TeamColour Team;
2018-11-09 17:54:05 +09:00
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
2018-11-08 06:29:04 +09:00
public ChoiceType Type;
2018-11-09 17:54:05 +09:00
2018-11-08 06:29:04 +09:00
public int BeatmapID;
}
2018-11-09 17:54:05 +09:00
[JsonConverter(typeof(StringEnumConverter))]
2018-11-08 06:29:04 +09:00
public enum TeamColour
{
Red,
Blue
}
2018-11-09 17:54:05 +09:00
[JsonConverter(typeof(StringEnumConverter))]
2018-11-08 06:29:04 +09:00
public enum ChoiceType
{
Pick,
Ban,
}
}