mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Replace tournament player storage type with lightweight model
This commit is contained in:
@ -7,7 +7,6 @@ using System;
|
||||
using System.Linq;
|
||||
using Newtonsoft.Json;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Game.Online.API.Requests.Responses;
|
||||
|
||||
namespace osu.Game.Tournament.Models
|
||||
{
|
||||
@ -38,7 +37,7 @@ namespace osu.Game.Tournament.Models
|
||||
{
|
||||
get
|
||||
{
|
||||
int[] ranks = Players.Select(p => p.Statistics?.GlobalRank)
|
||||
int[] ranks = Players.Select(p => p.Rank)
|
||||
.Where(i => i.HasValue)
|
||||
.Select(i => i.Value)
|
||||
.ToArray();
|
||||
@ -59,7 +58,7 @@ namespace osu.Game.Tournament.Models
|
||||
};
|
||||
|
||||
[JsonProperty]
|
||||
public BindableList<APIUser> Players { get; set; } = new BindableList<APIUser>();
|
||||
public BindableList<TournamentPlayer> Players { get; set; } = new BindableList<TournamentPlayer>();
|
||||
|
||||
public TournamentTeam()
|
||||
{
|
||||
|
Reference in New Issue
Block a user