1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-24 19:42:57 +08:00
osu-lazer/osu.Game/Users/CountryCode.cs

790 lines
13 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.
2018-04-13 17:19:50 +08:00
using System.ComponentModel;
using JetBrains.Annotations;
2018-04-13 17:19:50 +08:00
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
2018-04-13 17:19:50 +08:00
namespace osu.Game.Users
{
/// <summary>
/// Matches `osu_countries` database table.
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
[UsedImplicitly(ImplicitUseTargetFlags.WithMembers)]
2022-07-18 13:40:34 +08:00
public enum CountryCode
2018-04-13 17:19:50 +08:00
{
[Description("Unknown")]
Unknown = 0,
[Description("Anonymous Proxy")]
A1,
[Description("Satellite Provider")]
A2,
2023-10-24 13:45:25 +08:00
[Description("Andorra")]
AD,
[Description("United Arab Emirates")]
AE,
[Description("Afghanistan")]
AF,
[Description("Antigua and Barbuda")]
AG,
[Description("Anguilla")]
AI,
[Description("Albania")]
AL,
[Description("Armenia")]
AM,
[Description("Netherlands Antilles")]
AN,
2023-10-24 13:45:25 +08:00
[Description("Angola")]
AO,
[Description("Asia/Pacific Region")]
AP,
2023-10-24 13:45:25 +08:00
[Description("Antarctica")]
AQ,
[Description("Argentina")]
AR,
[Description("American Samoa")]
AS,
[Description("Austria")]
AT,
[Description("Australia")]
AU,
[Description("Aruba")]
AW,
[Description("Aland Islands")]
AX,
[Description("Azerbaijan")]
AZ,
[Description("Bosnia and Herzegovina")]
BA,
[Description("Barbados")]
BB,
[Description("Bangladesh")]
BD,
[Description("Belgium")]
BE,
[Description("Burkina Faso")]
BF,
[Description("Bulgaria")]
BG,
2023-10-24 13:45:25 +08:00
[Description("Bahrain")]
BH,
2023-10-24 13:45:25 +08:00
[Description("Burundi")]
BI,
2023-10-24 13:45:25 +08:00
[Description("Benin")]
BJ,
[Description("Saint Barthelemy")]
BL,
[Description("Bermuda")]
BM,
[Description("Brunei")]
BN,
[Description("Bolivia")]
BO,
[Description("Caribbean Netherlands")]
2023-10-24 13:45:25 +08:00
BQ,
2023-10-24 13:45:25 +08:00
[Description("Brazil")]
BR,
2023-10-24 13:45:25 +08:00
[Description("Bahamas")]
BS,
[Description("Bhutan")]
BT,
[Description("Bouvet Island")]
BV,
[Description("Botswana")]
BW,
[Description("Belarus")]
BY,
[Description("Belize")]
BZ,
2023-10-24 13:45:25 +08:00
[Description("Canada")]
CA,
[Description("Cocos (Keeling) Islands")]
2023-10-24 13:45:25 +08:00
CC,
[Description("The Democratic Republic of the Congo")]
2023-10-24 13:45:25 +08:00
CD,
2023-10-24 13:45:25 +08:00
[Description("Central African Republic")]
CF,
[Description("Congo")]
2023-10-24 13:45:25 +08:00
CG,
2023-10-24 13:45:25 +08:00
[Description("Switzerland")]
CH,
[Description("Cote D'Ivoire")]
2023-10-24 13:45:25 +08:00
CI,
2023-10-24 13:45:25 +08:00
[Description("Cook Islands")]
CK,
2023-10-24 13:45:25 +08:00
[Description("Chile")]
CL,
2023-10-24 13:45:25 +08:00
[Description("Cameroon")]
CM,
2023-10-24 13:45:25 +08:00
[Description("China")]
CN,
2023-10-24 13:45:25 +08:00
[Description("Colombia")]
CO,
2023-10-24 13:45:25 +08:00
[Description("Costa Rica")]
CR,
2023-10-24 13:45:25 +08:00
[Description("Cuba")]
CU,
2023-10-24 13:45:25 +08:00
[Description("Cabo Verde")]
CV,
[Description("Curaçao")]
2023-10-24 13:45:25 +08:00
CW,
2023-10-24 13:45:25 +08:00
[Description("Christmas Island")]
CX,
2023-10-24 13:45:25 +08:00
[Description("Cyprus")]
CY,
[Description("Czechia")]
2023-10-24 13:45:25 +08:00
CZ,
2023-10-24 13:45:25 +08:00
[Description("Germany")]
DE,
2023-10-24 13:45:25 +08:00
[Description("Djibouti")]
DJ,
2023-10-24 13:45:25 +08:00
[Description("Denmark")]
DK,
2023-10-24 13:45:25 +08:00
[Description("Dominica")]
DM,
2023-10-24 13:45:25 +08:00
[Description("Dominican Republic")]
DO,
2023-10-24 13:45:25 +08:00
[Description("Algeria")]
DZ,
2023-10-24 13:45:25 +08:00
[Description("Ecuador")]
EC,
2023-10-24 13:45:25 +08:00
[Description("Estonia")]
EE,
2023-10-24 13:45:25 +08:00
[Description("Egypt")]
EG,
2023-10-24 13:45:25 +08:00
[Description("Western Sahara")]
EH,
2023-10-24 13:45:25 +08:00
[Description("Eritrea")]
ER,
2023-10-24 13:45:25 +08:00
[Description("Spain")]
ES,
2023-10-24 13:45:25 +08:00
[Description("Ethiopia")]
ET,
[Description("Europe")]
EU,
2023-10-24 13:45:25 +08:00
[Description("Finland")]
FI,
2023-10-24 13:45:25 +08:00
[Description("Fiji")]
FJ,
[Description("Falkland Islands (Malvinas)")]
2023-10-24 13:45:25 +08:00
FK,
[Description("Federated States of Micronesia")]
2023-10-24 13:45:25 +08:00
FM,
2023-10-24 13:45:25 +08:00
[Description("Faroe Islands")]
FO,
2023-10-24 13:45:25 +08:00
[Description("France")]
FR,
[Description("France, Metropolitan")]
FX,
2023-10-24 13:45:25 +08:00
[Description("Gabon")]
GA,
2023-10-24 13:45:25 +08:00
[Description("United Kingdom")]
GB,
2023-10-24 13:45:25 +08:00
[Description("Grenada")]
GD,
2023-10-24 13:45:25 +08:00
[Description("Georgia")]
GE,
2023-10-24 13:45:25 +08:00
[Description("French Guiana")]
GF,
2023-10-24 13:45:25 +08:00
[Description("Guernsey")]
GG,
2023-10-24 13:45:25 +08:00
[Description("Ghana")]
GH,
2023-10-24 13:45:25 +08:00
[Description("Gibraltar")]
GI,
2023-10-24 13:45:25 +08:00
[Description("Greenland")]
GL,
2023-10-24 13:45:25 +08:00
[Description("Gambia")]
GM,
2023-10-24 13:45:25 +08:00
[Description("Guinea")]
GN,
2023-10-24 13:45:25 +08:00
[Description("Guadeloupe")]
GP,
2023-10-24 13:45:25 +08:00
[Description("Equatorial Guinea")]
GQ,
2023-10-24 13:45:25 +08:00
[Description("Greece")]
GR,
2023-10-24 13:45:25 +08:00
[Description("South Georgia and the South Sandwich Islands")]
GS,
2023-10-24 13:45:25 +08:00
[Description("Guatemala")]
GT,
2023-10-24 13:45:25 +08:00
[Description("Guam")]
GU,
2023-10-24 13:45:25 +08:00
[Description("Guinea-Bissau")]
GW,
2023-10-24 13:45:25 +08:00
[Description("Guyana")]
GY,
2023-10-24 13:45:25 +08:00
[Description("Hong Kong")]
HK,
2023-10-24 13:45:25 +08:00
[Description("Heard Island and McDonald Islands")]
HM,
2023-10-24 13:45:25 +08:00
[Description("Honduras")]
HN,
2023-10-24 13:45:25 +08:00
[Description("Croatia")]
HR,
2023-10-24 13:45:25 +08:00
[Description("Haiti")]
HT,
[Description("Hungary")]
HU,
[Description("Indonesia")]
ID,
[Description("Ireland")]
IE,
[Description("Israel")]
IL,
[Description("Isle of Man")]
IM,
[Description("India")]
IN,
[Description("British Indian Ocean Territory")]
IO,
[Description("Iraq")]
IQ,
[Description("Islamic Republic of Iran")]
2023-10-24 13:45:25 +08:00
IR,
[Description("Iceland")]
IS,
[Description("Italy")]
IT,
2023-10-24 13:45:25 +08:00
[Description("Jersey")]
JE,
2023-10-24 13:45:25 +08:00
[Description("Jamaica")]
JM,
2023-10-24 13:45:25 +08:00
[Description("Jordan")]
JO,
2023-10-24 13:45:25 +08:00
[Description("Japan")]
JP,
2023-10-24 13:45:25 +08:00
[Description("Kenya")]
KE,
2023-10-24 13:45:25 +08:00
[Description("Kyrgyzstan")]
KG,
2023-10-24 13:45:25 +08:00
[Description("Cambodia")]
KH,
2023-10-24 13:45:25 +08:00
[Description("Kiribati")]
KI,
2023-10-24 13:45:25 +08:00
[Description("Comoros")]
KM,
2023-10-24 13:45:25 +08:00
[Description("Saint Kitts and Nevis")]
KN,
[Description("Democratic People's Republic of Korea")]
2023-10-24 13:45:25 +08:00
KP,
2023-10-24 13:45:25 +08:00
[Description("South Korea")]
KR,
[Description("Kuwait")]
KW,
[Description("Cayman Islands")]
KY,
[Description("Kazakhstan")]
KZ,
[Description("Lao People's Democratic Republic")]
2023-10-24 13:45:25 +08:00
LA,
[Description("Lebanon")]
LB,
[Description("Saint Lucia")]
LC,
[Description("Liechtenstein")]
LI,
[Description("Sri Lanka")]
LK,
[Description("Liberia")]
LR,
[Description("Lesotho")]
LS,
[Description("Lithuania")]
LT,
[Description("Luxembourg")]
LU,
[Description("Latvia")]
LV,
[Description("Libya")]
LY,
[Description("Morocco")]
MA,
[Description("Monaco")]
MC,
2023-10-24 13:45:25 +08:00
[Description("Moldova")]
MD,
2023-10-24 13:45:25 +08:00
[Description("Montenegro")]
ME,
2023-10-24 13:45:25 +08:00
[Description("Saint Martin")]
MF,
2023-10-24 13:45:25 +08:00
[Description("Madagascar")]
MG,
[Description("Marshall Islands")]
MH,
[Description("North Macedonia")]
MK,
2023-10-24 13:45:25 +08:00
[Description("Mali")]
ML,
2023-10-24 13:45:25 +08:00
[Description("Myanmar")]
MM,
2023-10-24 13:45:25 +08:00
[Description("Mongolia")]
MN,
[Description("Macau")]
2023-10-24 13:45:25 +08:00
MO,
[Description("Northern Mariana Islands")]
MP,
2023-10-24 13:45:25 +08:00
[Description("Martinique")]
MQ,
[Description("Mauritania")]
MR,
2023-10-24 13:45:25 +08:00
[Description("Montserrat")]
MS,
2023-10-24 13:45:25 +08:00
[Description("Malta")]
MT,
2023-10-24 13:45:25 +08:00
[Description("Mauritius")]
MU,
2023-10-24 13:45:25 +08:00
[Description("Maldives")]
MV,
[Description("Malawi")]
MW,
[Description("Mexico")]
MX,
2023-10-24 13:45:25 +08:00
[Description("Malaysia")]
MY,
2023-10-24 13:45:25 +08:00
[Description("Mozambique")]
MZ,
[Description("Namibia")]
NA,
[Description("New Caledonia")]
NC,
[Description("Niger")]
NE,
[Description("Norfolk Island")]
NF,
[Description("Nigeria")]
NG,
2023-10-24 13:45:25 +08:00
[Description("Nicaragua")]
NI,
[Description("Netherlands")]
NL,
[Description("Norway")]
NO,
[Description("Nepal")]
NP,
[Description("Nauru")]
NR,
[Description("Niue")]
NU,
2023-10-24 13:45:25 +08:00
[Description("New Zealand")]
NZ,
[Description("Other")]
O1,
2023-10-24 13:45:25 +08:00
[Description("Oman")]
OM,
2023-10-24 13:45:25 +08:00
[Description("Panama")]
PA,
2023-10-24 13:45:25 +08:00
[Description("Peru")]
PE,
2023-10-24 13:45:25 +08:00
[Description("French Polynesia")]
PF,
2023-10-24 13:45:25 +08:00
[Description("Papua New Guinea")]
PG,
2023-10-24 13:45:25 +08:00
[Description("Philippines")]
PH,
2023-10-24 13:45:25 +08:00
[Description("Pakistan")]
PK,
2023-10-24 13:45:25 +08:00
[Description("Poland")]
PL,
2023-10-24 13:45:25 +08:00
[Description("Saint Pierre and Miquelon")]
PM,
2023-10-24 13:45:25 +08:00
[Description("Pitcairn")]
PN,
2023-10-24 13:45:25 +08:00
[Description("Puerto Rico")]
PR,
[Description("State of Palestine")]
2023-10-24 13:45:25 +08:00
PS,
2023-10-24 13:45:25 +08:00
[Description("Portugal")]
PT,
2023-10-24 13:45:25 +08:00
[Description("Palau")]
PW,
2023-10-24 13:45:25 +08:00
[Description("Paraguay")]
PY,
2023-10-24 13:45:25 +08:00
[Description("Qatar")]
QA,
2023-10-24 13:45:25 +08:00
[Description("Reunion")]
RE,
2023-10-24 13:45:25 +08:00
[Description("Romania")]
RO,
2023-10-24 13:45:25 +08:00
[Description("Serbia")]
RS,
2023-10-24 13:45:25 +08:00
[Description("Russian Federation")]
RU,
2023-10-24 13:45:25 +08:00
[Description("Rwanda")]
RW,
2023-10-24 13:45:25 +08:00
[Description("Saudi Arabia")]
SA,
2023-10-24 13:45:25 +08:00
[Description("Solomon Islands")]
SB,
[Description("Seychelles")]
SC,
2023-10-24 13:45:25 +08:00
[Description("Sudan")]
SD,
2023-10-24 13:45:25 +08:00
[Description("Sweden")]
SE,
[Description("Singapore")]
SG,
2023-10-24 13:45:25 +08:00
[Description("Saint Helena")]
SH,
2023-10-24 13:45:25 +08:00
[Description("Slovenia")]
SI,
2023-10-24 13:45:25 +08:00
[Description("Svalbard and Jan Mayen")]
SJ,
2023-10-24 13:45:25 +08:00
[Description("Slovakia")]
SK,
2023-10-24 13:45:25 +08:00
[Description("Sierra Leone")]
SL,
2023-10-24 13:45:25 +08:00
[Description("San Marino")]
SM,
2023-10-24 13:45:25 +08:00
[Description("Senegal")]
SN,
2023-10-24 13:45:25 +08:00
[Description("Somalia")]
SO,
2023-10-24 13:45:25 +08:00
[Description("Suriname")]
SR,
2023-10-24 13:45:25 +08:00
[Description("Sao Tome and Principe")]
ST,
2023-10-24 13:45:25 +08:00
[Description("El Salvador")]
SV,
2023-10-24 13:45:25 +08:00
[Description("Sint Maarten")]
SX,
[Description("Syrian Arab Republic")]
2023-10-24 13:45:25 +08:00
SY,
2023-10-24 13:45:25 +08:00
[Description("Eswatini")]
SZ,
2023-10-24 13:45:25 +08:00
[Description("Turks and Caicos Islands")]
TC,
2023-10-24 13:45:25 +08:00
[Description("Chad")]
TD,
2023-10-24 13:45:25 +08:00
[Description("French Southern Territories")]
TF,
2023-10-24 13:45:25 +08:00
[Description("Togo")]
TG,
2023-10-24 13:45:25 +08:00
[Description("Thailand")]
TH,
2023-10-24 13:45:25 +08:00
[Description("Tajikistan")]
TJ,
2023-10-24 13:45:25 +08:00
[Description("Tokelau")]
TK,
[Description("Timor-Leste")]
2023-10-24 13:45:25 +08:00
TL,
2023-10-24 13:45:25 +08:00
[Description("Turkmenistan")]
TM,
[Description("Tunisia")]
TN,
[Description("Tonga")]
TO,
2023-10-24 13:45:25 +08:00
[Description("Türkiye")]
TR,
2023-10-24 13:45:25 +08:00
[Description("Trinidad and Tobago")]
TT,
2023-10-24 13:45:25 +08:00
[Description("Tuvalu")]
TV,
2023-10-24 13:45:25 +08:00
[Description("Taiwan")]
TW,
[Description("United Republic of Tanzania")]
2023-10-24 13:45:25 +08:00
TZ,
2023-10-24 13:45:25 +08:00
[Description("Ukraine")]
UA,
2023-10-24 13:45:25 +08:00
[Description("Uganda")]
UG,
2023-10-24 13:45:25 +08:00
[Description("United States Minor Outlying Islands")]
UM,
2023-10-24 13:45:25 +08:00
[Description("United States")]
US,
2023-10-24 13:45:25 +08:00
[Description("Uruguay")]
UY,
[Description("Uzbekistan")]
UZ,
[Description("Holy See (Vatican City State)")]
VA,
[Description("Saint Vincent and the Grenadines")]
VC,
2023-10-24 13:45:25 +08:00
[Description("Venezuela")]
VE,
[Description("Virgin Islands, British")]
2023-10-24 13:45:25 +08:00
VG,
[Description("Virgin Islands, U.S.")]
VI,
2023-10-24 13:45:25 +08:00
[Description("Vietnam")]
VN,
2023-10-24 13:45:25 +08:00
[Description("Vanuatu")]
VU,
2023-10-24 13:45:25 +08:00
[Description("Wallis and Futuna")]
WF,
2023-10-24 13:45:25 +08:00
[Description("Samoa")]
WS,
2023-10-24 13:45:25 +08:00
[Description("Kosovo")]
XK,
2023-10-24 13:45:25 +08:00
[Description("Yemen")]
YE,
2023-10-24 13:45:25 +08:00
[Description("Mayotte")]
YT,
2023-10-24 13:45:25 +08:00
[Description("South Africa")]
ZA,
2023-10-24 13:45:25 +08:00
[Description("Zambia")]
ZM,
2023-10-24 13:45:25 +08:00
[Description("Zimbabwe")]
ZW,
2018-04-13 17:19:50 +08:00
}
}