diff --git a/osu.Game/Scoring/ScoreInfo.cs b/osu.Game/Scoring/ScoreInfo.cs index cb81901d0a..28a6d67b6a 100644 --- a/osu.Game/Scoring/ScoreInfo.cs +++ b/osu.Game/Scoring/ScoreInfo.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; using System.Linq; +using AutoMapper; using JetBrains.Annotations; using Newtonsoft.Json; using osu.Framework.Localisation; @@ -45,11 +46,11 @@ public class ScoreInfo : RealmObject, IHasGuidPrimaryKey, IHasRealmFiles, ISoftD [MapTo("User")] public RealmUser RealmUser { get; set; } = null!; - public ScoreInfo(BeatmapInfo beatmap, RulesetInfo ruleset, RealmUser user) + public ScoreInfo(BeatmapInfo beatmap, RulesetInfo ruleset, RealmUser realmUser) { Ruleset = ruleset; Beatmap = beatmap; - RealmUser = user; + RealmUser = realmUser; } [UsedImplicitly] @@ -61,6 +62,7 @@ public ScoreInfo() // TODO: this bypasses null safeties. needs to be hidden from // Eventually we should either persist enough information to realm to not require the API lookups, or perform the API lookups locally. private APIUser? user; + [IgnoreMap] public APIUser User { get => user ??= new APIUser @@ -164,7 +166,6 @@ public ScoreInfo DeepClone() [Ignored] public bool Passed { get; set; } = true; - [Ignored] public int Combo { get; set; } ///