osu/osu.Game.Tournament/Models/BeatmapChoice.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
927 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-11-07 21:29:04 +00:00
2022-06-17 07:37:17 +00:00
#nullable disable
2019-06-18 06:00:33 +00:00
using System;
2018-11-09 08:54:05 +00:00
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
2019-06-18 05:51:48 +00:00
namespace osu.Game.Tournament.Models
2018-11-07 21:29:04 +00:00
{
2019-06-18 06:00:33 +00:00
/// <summary>
/// A beatmap choice by a team from a tournament's map pool.
/// </summary>
[Serializable]
2018-11-07 21:29:04 +00:00
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,
}
}