1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 03:27:24 +08:00
osu-lazer/osu.Game.Tournament/Components/TournamentTeam.cs

43 lines
1.1 KiB
C#
Raw Normal View History

2018-04-13 17:19:50 +08:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Collections.Generic;
using osu.Game.Users;
2018-08-26 00:24:19 +08:00
namespace osu.Game.Tournament.Components
2018-04-13 17:19:50 +08:00
{
public class TournamentTeam
2018-04-13 17:19:50 +08:00
{
/// <summary>
/// The name of this team.
/// </summary>
public string FullName;
private string flagName;
2018-04-13 17:19:50 +08:00
/// <summary>
/// Name of the file containing the flag.
2018-04-13 17:19:50 +08:00
/// </summary>
public string FlagName
{
2018-09-22 04:52:25 +08:00
get { return flagName ?? Acronym?.Substring(0, 2); }
set { flagName = value; }
}
private string acronym;
2018-04-13 17:19:50 +08:00
/// <summary>
/// Short acronym which appears in the group boxes post-selection.
2018-04-13 17:19:50 +08:00
/// </summary>
public string Acronym
{
2018-09-22 04:52:25 +08:00
get { return acronym ?? FullName?.Substring(0, 3); }
set { acronym = value; }
}
public List<User> Players { get; set; }
2018-09-22 04:52:25 +08:00
public override string ToString() => FullName ?? Acronym;
2018-04-13 17:19:50 +08:00
}
}