mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Store user country on databased scores
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
// 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.
|
||||
|
||||
#nullable disable
|
||||
|
||||
using System;
|
||||
using osu.Game.Database;
|
||||
using osu.Game.Users;
|
||||
@ -17,6 +15,16 @@ namespace osu.Game.Models
|
||||
|
||||
public string Username { get; set; } = string.Empty;
|
||||
|
||||
[Ignored]
|
||||
public Country Country
|
||||
{
|
||||
get => Enum.TryParse(CountryString, out Country country) ? country : default;
|
||||
set => CountryString = value.ToString();
|
||||
}
|
||||
|
||||
[MapTo(nameof(Country))]
|
||||
public string CountryString { get; set; } = default(Country).ToString();
|
||||
|
||||
public bool IsBot => false;
|
||||
|
||||
public bool Equals(RealmUser other)
|
||||
|
Reference in New Issue
Block a user