1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 01:23:44 +08:00
osu-lazer/osu.Game.Tournament/CountryExtensions.cs

771 lines
18 KiB
C#
Raw Normal View History

// 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.
using System;
using osu.Game.Users;
namespace osu.Game.Tournament
{
public static class CountryExtensions
{
2022-07-18 15:40:11 +08:00
public static string GetAcronym(this CountryCode country)
{
switch (country)
{
2022-07-18 15:40:11 +08:00
case CountryCode.BD:
return "BGD";
2022-07-18 15:40:11 +08:00
case CountryCode.BE:
return "BEL";
2022-07-18 15:40:11 +08:00
case CountryCode.BF:
return "BFA";
2022-07-18 15:40:11 +08:00
case CountryCode.BG:
return "BGR";
2022-07-18 15:40:11 +08:00
case CountryCode.BA:
return "BIH";
2022-07-18 15:40:11 +08:00
case CountryCode.BB:
return "BRB";
2022-07-18 15:40:11 +08:00
case CountryCode.WF:
return "WLF";
2022-07-18 15:40:11 +08:00
case CountryCode.BL:
return "BLM";
2022-07-18 15:40:11 +08:00
case CountryCode.BM:
return "BMU";
2022-07-18 15:40:11 +08:00
case CountryCode.BN:
return "BRN";
2022-07-18 15:40:11 +08:00
case CountryCode.BO:
return "BOL";
2022-07-18 15:40:11 +08:00
case CountryCode.BH:
return "BHR";
2022-07-18 15:40:11 +08:00
case CountryCode.BI:
return "BDI";
2022-07-18 15:40:11 +08:00
case CountryCode.BJ:
return "BEN";
2022-07-18 15:40:11 +08:00
case CountryCode.BT:
return "BTN";
2022-07-18 15:40:11 +08:00
case CountryCode.JM:
return "JAM";
2022-07-18 15:40:11 +08:00
case CountryCode.BV:
return "BVT";
2022-07-18 15:40:11 +08:00
case CountryCode.BW:
return "BWA";
2022-07-18 15:40:11 +08:00
case CountryCode.WS:
return "WSM";
2022-07-18 15:40:11 +08:00
case CountryCode.BQ:
return "BES";
2022-07-18 15:40:11 +08:00
case CountryCode.BR:
return "BRA";
2022-07-18 15:40:11 +08:00
case CountryCode.BS:
return "BHS";
2022-07-18 15:40:11 +08:00
case CountryCode.JE:
return "JEY";
2022-07-18 15:40:11 +08:00
case CountryCode.BY:
return "BLR";
2022-07-18 15:40:11 +08:00
case CountryCode.BZ:
return "BLZ";
2022-07-18 15:40:11 +08:00
case CountryCode.RU:
return "RUS";
2022-07-18 15:40:11 +08:00
case CountryCode.RW:
return "RWA";
2022-07-18 15:40:11 +08:00
case CountryCode.RS:
return "SRB";
2022-07-18 15:40:11 +08:00
case CountryCode.TL:
return "TLS";
2022-07-18 15:40:11 +08:00
case CountryCode.RE:
return "REU";
2022-07-18 15:40:11 +08:00
case CountryCode.TM:
return "TKM";
2022-07-18 15:40:11 +08:00
case CountryCode.TJ:
return "TJK";
2022-07-18 15:40:11 +08:00
case CountryCode.RO:
return "ROU";
2022-07-18 15:40:11 +08:00
case CountryCode.TK:
return "TKL";
2022-07-18 15:40:11 +08:00
case CountryCode.GW:
return "GNB";
2022-07-18 15:40:11 +08:00
case CountryCode.GU:
return "GUM";
2022-07-18 15:40:11 +08:00
case CountryCode.GT:
return "GTM";
2022-07-18 15:40:11 +08:00
case CountryCode.GS:
return "SGS";
2022-07-18 15:40:11 +08:00
case CountryCode.GR:
return "GRC";
2022-07-18 15:40:11 +08:00
case CountryCode.GQ:
return "GNQ";
2022-07-18 15:40:11 +08:00
case CountryCode.GP:
return "GLP";
2022-07-18 15:40:11 +08:00
case CountryCode.JP:
return "JPN";
2022-07-18 15:40:11 +08:00
case CountryCode.GY:
return "GUY";
2022-07-18 15:40:11 +08:00
case CountryCode.GG:
return "GGY";
2022-07-18 15:40:11 +08:00
case CountryCode.GF:
return "GUF";
2022-07-18 15:40:11 +08:00
case CountryCode.GE:
return "GEO";
2022-07-18 15:40:11 +08:00
case CountryCode.GD:
return "GRD";
2022-07-18 15:40:11 +08:00
case CountryCode.GB:
return "GBR";
2022-07-18 15:40:11 +08:00
case CountryCode.GA:
return "GAB";
2022-07-18 15:40:11 +08:00
case CountryCode.SV:
return "SLV";
2022-07-18 15:40:11 +08:00
case CountryCode.GN:
return "GIN";
2022-07-18 15:40:11 +08:00
case CountryCode.GM:
return "GMB";
2022-07-18 15:40:11 +08:00
case CountryCode.GL:
return "GRL";
2022-07-18 15:40:11 +08:00
case CountryCode.GI:
return "GIB";
2022-07-18 15:40:11 +08:00
case CountryCode.GH:
return "GHA";
2022-07-18 15:40:11 +08:00
case CountryCode.OM:
return "OMN";
2022-07-18 15:40:11 +08:00
case CountryCode.TN:
return "TUN";
2022-07-18 15:40:11 +08:00
case CountryCode.JO:
return "JOR";
2022-07-18 15:40:11 +08:00
case CountryCode.HR:
return "HRV";
2022-07-18 15:40:11 +08:00
case CountryCode.HT:
return "HTI";
2022-07-18 15:40:11 +08:00
case CountryCode.HU:
return "HUN";
2022-07-18 15:40:11 +08:00
case CountryCode.HK:
return "HKG";
2022-07-18 15:40:11 +08:00
case CountryCode.HN:
return "HND";
2022-07-18 15:40:11 +08:00
case CountryCode.HM:
return "HMD";
2022-07-18 15:40:11 +08:00
case CountryCode.VE:
return "VEN";
2022-07-18 15:40:11 +08:00
case CountryCode.PR:
return "PRI";
2022-07-18 15:40:11 +08:00
case CountryCode.PS:
return "PSE";
2022-07-18 15:40:11 +08:00
case CountryCode.PW:
return "PLW";
2022-07-18 15:40:11 +08:00
case CountryCode.PT:
return "PRT";
2022-07-18 15:40:11 +08:00
case CountryCode.SJ:
return "SJM";
2022-07-18 15:40:11 +08:00
case CountryCode.PY:
return "PRY";
2022-07-18 15:40:11 +08:00
case CountryCode.IQ:
return "IRQ";
2022-07-18 15:40:11 +08:00
case CountryCode.PA:
return "PAN";
2022-07-18 15:40:11 +08:00
case CountryCode.PF:
return "PYF";
2022-07-18 15:40:11 +08:00
case CountryCode.PG:
return "PNG";
2022-07-18 15:40:11 +08:00
case CountryCode.PE:
return "PER";
2022-07-18 15:40:11 +08:00
case CountryCode.PK:
return "PAK";
2022-07-18 15:40:11 +08:00
case CountryCode.PH:
return "PHL";
2022-07-18 15:40:11 +08:00
case CountryCode.PN:
return "PCN";
2022-07-18 15:40:11 +08:00
case CountryCode.PL:
return "POL";
2022-07-18 15:40:11 +08:00
case CountryCode.PM:
return "SPM";
2022-07-18 15:40:11 +08:00
case CountryCode.ZM:
return "ZMB";
2022-07-18 15:40:11 +08:00
case CountryCode.EH:
return "ESH";
2022-07-18 15:40:11 +08:00
case CountryCode.EE:
return "EST";
2022-07-18 15:40:11 +08:00
case CountryCode.EG:
return "EGY";
2022-07-18 15:40:11 +08:00
case CountryCode.ZA:
return "ZAF";
2022-07-18 15:40:11 +08:00
case CountryCode.EC:
return "ECU";
2022-07-18 15:40:11 +08:00
case CountryCode.IT:
return "ITA";
2022-07-18 15:40:11 +08:00
case CountryCode.VN:
return "VNM";
2022-07-18 15:40:11 +08:00
case CountryCode.SB:
return "SLB";
2022-07-18 15:40:11 +08:00
case CountryCode.ET:
return "ETH";
2022-07-18 15:40:11 +08:00
case CountryCode.SO:
return "SOM";
2022-07-18 15:40:11 +08:00
case CountryCode.ZW:
return "ZWE";
2022-07-18 15:40:11 +08:00
case CountryCode.SA:
return "SAU";
2022-07-18 15:40:11 +08:00
case CountryCode.ES:
return "ESP";
2022-07-18 15:40:11 +08:00
case CountryCode.ER:
return "ERI";
2022-07-18 15:40:11 +08:00
case CountryCode.ME:
return "MNE";
2022-07-18 15:40:11 +08:00
case CountryCode.MD:
return "MDA";
2022-07-18 15:40:11 +08:00
case CountryCode.MG:
return "MDG";
2022-07-18 15:40:11 +08:00
case CountryCode.MF:
return "MAF";
2022-07-18 15:40:11 +08:00
case CountryCode.MA:
return "MAR";
2022-07-18 15:40:11 +08:00
case CountryCode.MC:
return "MCO";
2022-07-18 15:40:11 +08:00
case CountryCode.UZ:
return "UZB";
2022-07-18 15:40:11 +08:00
case CountryCode.MM:
return "MMR";
2022-07-18 15:40:11 +08:00
case CountryCode.ML:
return "MLI";
2022-07-18 15:40:11 +08:00
case CountryCode.MO:
return "MAC";
2022-07-18 15:40:11 +08:00
case CountryCode.MN:
return "MNG";
2022-07-18 15:40:11 +08:00
case CountryCode.MH:
return "MHL";
2022-07-18 15:40:11 +08:00
case CountryCode.MK:
return "MKD";
2022-07-18 15:40:11 +08:00
case CountryCode.MU:
return "MUS";
2022-07-18 15:40:11 +08:00
case CountryCode.MT:
return "MLT";
2022-07-18 15:40:11 +08:00
case CountryCode.MW:
return "MWI";
2022-07-18 15:40:11 +08:00
case CountryCode.MV:
return "MDV";
2022-07-18 15:40:11 +08:00
case CountryCode.MQ:
return "MTQ";
2022-07-18 15:40:11 +08:00
case CountryCode.MP:
return "MNP";
2022-07-18 15:40:11 +08:00
case CountryCode.MS:
return "MSR";
2022-07-18 15:40:11 +08:00
case CountryCode.MR:
return "MRT";
2022-07-18 15:40:11 +08:00
case CountryCode.IM:
return "IMN";
2022-07-18 15:40:11 +08:00
case CountryCode.UG:
return "UGA";
2022-07-18 15:40:11 +08:00
case CountryCode.TZ:
return "TZA";
2022-07-18 15:40:11 +08:00
case CountryCode.MY:
return "MYS";
2022-07-18 15:40:11 +08:00
case CountryCode.MX:
return "MEX";
2022-07-18 15:40:11 +08:00
case CountryCode.IL:
return "ISR";
2022-07-18 15:40:11 +08:00
case CountryCode.FR:
return "FRA";
2022-07-18 15:40:11 +08:00
case CountryCode.IO:
return "IOT";
2022-07-18 15:40:11 +08:00
case CountryCode.SH:
return "SHN";
2022-07-18 15:40:11 +08:00
case CountryCode.FI:
return "FIN";
2022-07-18 15:40:11 +08:00
case CountryCode.FJ:
return "FJI";
2022-07-18 15:40:11 +08:00
case CountryCode.FK:
return "FLK";
2022-07-18 15:40:11 +08:00
case CountryCode.FM:
return "FSM";
2022-07-18 15:40:11 +08:00
case CountryCode.FO:
return "FRO";
2022-07-18 15:40:11 +08:00
case CountryCode.NI:
return "NIC";
2022-07-18 15:40:11 +08:00
case CountryCode.NL:
return "NLD";
2022-07-18 15:40:11 +08:00
case CountryCode.NO:
return "NOR";
2022-07-18 15:40:11 +08:00
case CountryCode.NA:
return "NAM";
2022-07-18 15:40:11 +08:00
case CountryCode.VU:
return "VUT";
2022-07-18 15:40:11 +08:00
case CountryCode.NC:
return "NCL";
2022-07-18 15:40:11 +08:00
case CountryCode.NE:
return "NER";
2022-07-18 15:40:11 +08:00
case CountryCode.NF:
return "NFK";
2022-07-18 15:40:11 +08:00
case CountryCode.NG:
return "NGA";
2022-07-18 15:40:11 +08:00
case CountryCode.NZ:
return "NZL";
2022-07-18 15:40:11 +08:00
case CountryCode.NP:
return "NPL";
2022-07-18 15:40:11 +08:00
case CountryCode.NR:
return "NRU";
2022-07-18 15:40:11 +08:00
case CountryCode.NU:
return "NIU";
2022-07-18 15:40:11 +08:00
case CountryCode.CK:
return "COK";
2022-07-18 15:40:11 +08:00
case CountryCode.XK:
return "XKX";
2022-07-18 15:40:11 +08:00
case CountryCode.CI:
return "CIV";
2022-07-18 15:40:11 +08:00
case CountryCode.CH:
return "CHE";
2022-07-18 15:40:11 +08:00
case CountryCode.CO:
return "COL";
2022-07-18 15:40:11 +08:00
case CountryCode.CN:
return "CHN";
2022-07-18 15:40:11 +08:00
case CountryCode.CM:
return "CMR";
2022-07-18 15:40:11 +08:00
case CountryCode.CL:
return "CHL";
2022-07-18 15:40:11 +08:00
case CountryCode.CC:
return "CCK";
2022-07-18 15:40:11 +08:00
case CountryCode.CA:
return "CAN";
2022-07-18 15:40:11 +08:00
case CountryCode.CG:
return "COG";
2022-07-18 15:40:11 +08:00
case CountryCode.CF:
return "CAF";
2022-07-18 15:40:11 +08:00
case CountryCode.CD:
return "COD";
2022-07-18 15:40:11 +08:00
case CountryCode.CZ:
return "CZE";
2022-07-18 15:40:11 +08:00
case CountryCode.CY:
return "CYP";
2022-07-18 15:40:11 +08:00
case CountryCode.CX:
return "CXR";
2022-07-18 15:40:11 +08:00
case CountryCode.CR:
return "CRI";
2022-07-18 15:40:11 +08:00
case CountryCode.CW:
return "CUW";
2022-07-18 15:40:11 +08:00
case CountryCode.CV:
return "CPV";
2022-07-18 15:40:11 +08:00
case CountryCode.CU:
return "CUB";
2022-07-18 15:40:11 +08:00
case CountryCode.SZ:
return "SWZ";
2022-07-18 15:40:11 +08:00
case CountryCode.SY:
return "SYR";
2022-07-18 15:40:11 +08:00
case CountryCode.SX:
return "SXM";
2022-07-18 15:40:11 +08:00
case CountryCode.KG:
return "KGZ";
2022-07-18 15:40:11 +08:00
case CountryCode.KE:
return "KEN";
2022-07-18 15:40:11 +08:00
case CountryCode.SS:
return "SSD";
2022-07-18 15:40:11 +08:00
case CountryCode.SR:
return "SUR";
2022-07-18 15:40:11 +08:00
case CountryCode.KI:
return "KIR";
2022-07-18 15:40:11 +08:00
case CountryCode.KH:
return "KHM";
2022-07-18 15:40:11 +08:00
case CountryCode.KN:
return "KNA";
2022-07-18 15:40:11 +08:00
case CountryCode.KM:
return "COM";
2022-07-18 15:40:11 +08:00
case CountryCode.ST:
return "STP";
2022-07-18 15:40:11 +08:00
case CountryCode.SK:
return "SVK";
2022-07-18 15:40:11 +08:00
case CountryCode.KR:
return "KOR";
2022-07-18 15:40:11 +08:00
case CountryCode.SI:
return "SVN";
2022-07-18 15:40:11 +08:00
case CountryCode.KP:
return "PRK";
2022-07-18 15:40:11 +08:00
case CountryCode.KW:
return "KWT";
2022-07-18 15:40:11 +08:00
case CountryCode.SN:
return "SEN";
2022-07-18 15:40:11 +08:00
case CountryCode.SM:
return "SMR";
2022-07-18 15:40:11 +08:00
case CountryCode.SL:
return "SLE";
2022-07-18 15:40:11 +08:00
case CountryCode.SC:
return "SYC";
2022-07-18 15:40:11 +08:00
case CountryCode.KZ:
return "KAZ";
2022-07-18 15:40:11 +08:00
case CountryCode.KY:
return "CYM";
2022-07-18 15:40:11 +08:00
case CountryCode.SG:
return "SGP";
2022-07-18 15:40:11 +08:00
case CountryCode.SE:
return "SWE";
2022-07-18 15:40:11 +08:00
case CountryCode.SD:
return "SDN";
2022-07-18 15:40:11 +08:00
case CountryCode.DO:
return "DOM";
2022-07-18 15:40:11 +08:00
case CountryCode.DM:
return "DMA";
2022-07-18 15:40:11 +08:00
case CountryCode.DJ:
return "DJI";
2022-07-18 15:40:11 +08:00
case CountryCode.DK:
return "DNK";
2022-07-18 15:40:11 +08:00
case CountryCode.VG:
return "VGB";
2022-07-18 15:40:11 +08:00
case CountryCode.DE:
return "DEU";
2022-07-18 15:40:11 +08:00
case CountryCode.YE:
return "YEM";
2022-07-18 15:40:11 +08:00
case CountryCode.DZ:
return "DZA";
2022-07-18 15:40:11 +08:00
case CountryCode.US:
return "USA";
2022-07-18 15:40:11 +08:00
case CountryCode.UY:
return "URY";
2022-07-18 15:40:11 +08:00
case CountryCode.YT:
return "MYT";
2022-07-18 15:40:11 +08:00
case CountryCode.UM:
return "UMI";
2022-07-18 15:40:11 +08:00
case CountryCode.LB:
return "LBN";
2022-07-18 15:40:11 +08:00
case CountryCode.LC:
return "LCA";
2022-07-18 15:40:11 +08:00
case CountryCode.LA:
return "LAO";
2022-07-18 15:40:11 +08:00
case CountryCode.TV:
return "TUV";
2022-07-18 15:40:11 +08:00
case CountryCode.TW:
return "TWN";
2022-07-18 15:40:11 +08:00
case CountryCode.TT:
return "TTO";
2022-07-18 15:40:11 +08:00
case CountryCode.TR:
return "TUR";
2022-07-18 15:40:11 +08:00
case CountryCode.LK:
return "LKA";
2022-07-18 15:40:11 +08:00
case CountryCode.LI:
return "LIE";
2022-07-18 15:40:11 +08:00
case CountryCode.LV:
return "LVA";
2022-07-18 15:40:11 +08:00
case CountryCode.TO:
return "TON";
2022-07-18 15:40:11 +08:00
case CountryCode.LT:
return "LTU";
2022-07-18 15:40:11 +08:00
case CountryCode.LU:
return "LUX";
2022-07-18 15:40:11 +08:00
case CountryCode.LR:
return "LBR";
2022-07-18 15:40:11 +08:00
case CountryCode.LS:
return "LSO";
2022-07-18 15:40:11 +08:00
case CountryCode.TH:
return "THA";
2022-07-18 15:40:11 +08:00
case CountryCode.TF:
return "ATF";
2022-07-18 15:40:11 +08:00
case CountryCode.TG:
return "TGO";
2022-07-18 15:40:11 +08:00
case CountryCode.TD:
return "TCD";
2022-07-18 15:40:11 +08:00
case CountryCode.TC:
return "TCA";
2022-07-18 15:40:11 +08:00
case CountryCode.LY:
return "LBY";
2022-07-18 15:40:11 +08:00
case CountryCode.VA:
return "VAT";
2022-07-18 15:40:11 +08:00
case CountryCode.VC:
return "VCT";
2022-07-18 15:40:11 +08:00
case CountryCode.AE:
return "ARE";
2022-07-18 15:40:11 +08:00
case CountryCode.AD:
return "AND";
2022-07-18 15:40:11 +08:00
case CountryCode.AG:
return "ATG";
2022-07-18 15:40:11 +08:00
case CountryCode.AF:
return "AFG";
2022-07-18 15:40:11 +08:00
case CountryCode.AI:
return "AIA";
2022-07-18 15:40:11 +08:00
case CountryCode.VI:
return "VIR";
2022-07-18 15:40:11 +08:00
case CountryCode.IS:
return "ISL";
2022-07-18 15:40:11 +08:00
case CountryCode.IR:
return "IRN";
2022-07-18 15:40:11 +08:00
case CountryCode.AM:
return "ARM";
2022-07-18 15:40:11 +08:00
case CountryCode.AL:
return "ALB";
2022-07-18 15:40:11 +08:00
case CountryCode.AO:
return "AGO";
2022-07-18 15:40:11 +08:00
case CountryCode.AQ:
return "ATA";
2022-07-18 15:40:11 +08:00
case CountryCode.AS:
return "ASM";
2022-07-18 15:40:11 +08:00
case CountryCode.AR:
return "ARG";
2022-07-18 15:40:11 +08:00
case CountryCode.AU:
return "AUS";
2022-07-18 15:40:11 +08:00
case CountryCode.AT:
return "AUT";
2022-07-18 15:40:11 +08:00
case CountryCode.AW:
return "ABW";
2022-07-18 15:40:11 +08:00
case CountryCode.IN:
return "IND";
2022-07-18 15:40:11 +08:00
case CountryCode.AX:
return "ALA";
2022-07-18 15:40:11 +08:00
case CountryCode.AZ:
return "AZE";
2022-07-18 15:40:11 +08:00
case CountryCode.IE:
return "IRL";
2022-07-18 15:40:11 +08:00
case CountryCode.ID:
return "IDN";
2022-07-18 15:40:11 +08:00
case CountryCode.UA:
return "UKR";
2022-07-18 15:40:11 +08:00
case CountryCode.QA:
return "QAT";
2022-07-18 15:40:11 +08:00
case CountryCode.MZ:
return "MOZ";
default:
throw new ArgumentOutOfRangeException(nameof(country));
}
}
}
}