// Copyright (c) 2007-2018 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using System.Collections.Generic; using Newtonsoft.Json; using osu.Game.Users; namespace osu.Game.Tournament.Components { [Serializable] public class TournamentTeam { /// /// The name of this team. /// public string FullName; private string flagName; /// /// Name of the file containing the flag. /// public string FlagName { get { return flagName ?? Acronym?.Substring(0, 2); } set { flagName = value; } } private string acronym; /// /// Short acronym which appears in the group boxes post-selection. /// public string Acronym { get { return acronym ?? FullName?.Substring(0, 3); } set { acronym = value; } } [JsonProperty] public List Players { get; set; } public override string ToString() => FullName ?? Acronym; } }