Detach and reattach scores to make work

This commit is contained in:
Dean Herbert
2022-01-07 17:27:48 +09:00
parent 60d2de8a3b
commit 2b8706b6ce
7 changed files with 35 additions and 11 deletions

View File

@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using AutoMapper;
using Newtonsoft.Json;
using osu.Framework.Localisation;
using osu.Framework.Testing;
@ -112,9 +113,16 @@ namespace osu.Game.Scoring
[MapTo(nameof(Rank))]
public int RankInt { get; set; }
[IgnoreMap]
IRulesetInfo IScoreInfo.Ruleset => Ruleset;
[IgnoreMap]
IBeatmapInfo IScoreInfo.Beatmap => Beatmap;
[IgnoreMap]
IUser IScoreInfo.User => User;
[IgnoreMap]
IEnumerable<INamedFileUsage> IHasNamedFiles.Files => Files;
#region Properties required to make things work with existing usages