mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Replace tournament beatmap storage type with lightweight model
This commit is contained in:
@ -14,7 +14,6 @@ using osu.Framework.Graphics.Shapes;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Beatmaps.Drawables;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Online.API.Requests.Responses;
|
||||
using osu.Game.Tournament.Models;
|
||||
using osuTK.Graphics;
|
||||
|
||||
@ -22,7 +21,7 @@ namespace osu.Game.Tournament.Components
|
||||
{
|
||||
public class TournamentBeatmapPanel : CompositeDrawable
|
||||
{
|
||||
public readonly APIBeatmap Beatmap;
|
||||
public readonly TournamentBeatmap Beatmap;
|
||||
|
||||
private readonly string mod;
|
||||
|
||||
@ -31,7 +30,7 @@ namespace osu.Game.Tournament.Components
|
||||
private readonly Bindable<TournamentMatch> currentMatch = new Bindable<TournamentMatch>();
|
||||
private Box flash;
|
||||
|
||||
public TournamentBeatmapPanel(APIBeatmap beatmap, string mod = null)
|
||||
public TournamentBeatmapPanel(TournamentBeatmap beatmap, string mod = null)
|
||||
{
|
||||
if (beatmap == null) throw new ArgumentNullException(nameof(beatmap));
|
||||
|
||||
@ -61,7 +60,7 @@ namespace osu.Game.Tournament.Components
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Colour = OsuColour.Gray(0.5f),
|
||||
OnlineInfo = Beatmap.BeatmapSet,
|
||||
OnlineInfo = Beatmap,
|
||||
},
|
||||
new FillFlowContainer
|
||||
{
|
||||
|
Reference in New Issue
Block a user